fix: correct code example language inconsistency in pt-BR docs (#3088)

* fix: correct code example language inconsistency in pt-BR docs

* fix: fix: fully standardize code example language and naming in pt-BR docs

* fix: fix: fully standardize code example language and naming in pt-BR docs fixed variables

* fix: fix: fully standardize code example language and naming in pt-BR docs fixed params

---------

Co-authored-by: Lucas Gomide <lucaslg200@gmail.com>
This commit is contained in:
Irineu Brito
2025-07-02 12:18:32 -04:00
committed by GitHub
parent ceb310bcde
commit 7f83947020
37 changed files with 545 additions and 634 deletions

View File

@@ -58,43 +58,43 @@ Neste guia, utilizaremos o exemplo de início rápido da CrewAI.
from crewai import Agent, Crew, Task, Process
class YourCrewName:
def agent_one(self) -> Agent:
class NomeDaEquipe:
def agente_um(self) -> Agent:
return Agent(
role="Data Analyst",
goal="Analyze data trends in the market",
backstory="An experienced data analyst with a background in economics",
role="Analista de Dados",
goal="Analisar tendências de dados no mercado",
backstory="Analista de dados experiente com formação em economia",
verbose=True,
)
def agent_two(self) -> Agent:
def agente_dois(self) -> Agent:
return Agent(
role="Market Researcher",
goal="Gather information on market dynamics",
backstory="A diligent researcher with a keen eye for detail",
role="Pesquisador de Mercado",
goal="Coletar informações sobre a dinâmica do mercado",
backstory="Pesquisador dedicado com olhar atento para detalhes",
verbose=True,
)
def task_one(self) -> Task:
def tarefa_um(self) -> Task:
return Task(
name="Collect Data Task",
description="Collect recent market data and identify trends.",
expected_output="A report summarizing key trends in the market.",
agent=self.agent_one(),
name="Tarefa de Coleta de Dados",
description="Coletar dados recentes do mercado e identificar tendências.",
expected_output="Um relatório resumindo as principais tendências do mercado.",
agent=self.agente_um(),
)
def task_two(self) -> Task:
def tarefa_dois(self) -> Task:
return Task(
name="Market Research Task",
description="Research factors affecting market dynamics.",
expected_output="An analysis of factors influencing the market.",
agent=self.agent_two(),
name="Tarefa de Pesquisa de Mercado",
description="Pesquisar fatores que afetam a dinâmica do mercado.",
expected_output="Uma análise dos fatores que influenciam o mercado.",
agent=self.agente_dois(),
)
def crew(self) -> Crew:
def equipe(self) -> Crew:
return Crew(
agents=[self.agent_one(), self.agent_two()],
tasks=[self.task_one(), self.task_two()],
agents=[self.agente_um(), self.agente_dois()],
tasks=[self.tarefa_um(), self.tarefa_dois()],
process=Process.sequential,
verbose=True,
)
@@ -108,7 +108,7 @@ Neste guia, utilizaremos o exemplo de início rápido da CrewAI.
track_crewai(project_name="crewai-integration-demo")
my_crew = YourCrewName().crew()
my_crew = NomeDaEquipe().equipe()
result = my_crew.kickoff()
print(result)