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

@@ -84,31 +84,31 @@ from crewai import Agent, Task, Crew
from crewai_tools import CrewaiEnterpriseTools
# Obtenha ferramentas enterprise (a ferramenta Gmail será incluída)
enterprise_tools = CrewaiEnterpriseTools(
enterprise_token="your_enterprise_token"
ferramentas_enterprise = CrewaiEnterpriseTools(
enterprise_token="seu_token_enterprise"
)
# imprima as ferramentas
print(enterprise_tools)
printf(ferramentas_enterprise)
# Crie um agente com capacidades do Gmail
email_agent = Agent(
role="Email Manager",
goal="Manage and organize email communications",
backstory="An AI assistant specialized in email management and communication.",
tools=enterprise_tools
agente_email = Agent(
role="Gerente de E-mails",
goal="Gerenciar e organizar comunicações por e-mail",
backstory="Um assistente de IA especializado em gestão de e-mails e comunicação.",
tools=ferramentas_enterprise
)
# Tarefa para enviar um e-mail
email_task = Task(
description="Draft and send a follow-up email to john@example.com about the project update",
agent=email_agent,
expected_output="Confirmation that email was sent successfully"
tarefa_email = Task(
description="Redigir e enviar um e-mail de acompanhamento para john@example.com sobre a atualização do projeto",
agent=agente_email,
expected_output="Confirmação de que o e-mail foi enviado com sucesso"
)
# Execute a tarefa
crew = Crew(
agents=[email_agent],
tasks=[email_task]
agents=[agente_email],
tasks=[tarefa_email]
)
# Execute o crew
@@ -125,23 +125,23 @@ enterprise_tools = CrewaiEnterpriseTools(
)
gmail_tool = enterprise_tools["gmail_find_email"]
gmail_agent = Agent(
role="Gmail Manager",
goal="Manage gmail communications and notifications",
backstory="An AI assistant that helps coordinate gmail communications.",
agente_gmail = Agent(
role="Gerente do Gmail",
goal="Gerenciar comunicações e notificações do gmail",
backstory="Um assistente de IA que ajuda a coordenar comunicações no gmail.",
tools=[gmail_tool]
)
notification_task = Task(
description="Find the email from john@example.com",
agent=gmail_agent,
expected_output="Email found from john@example.com"
tarefa_notificacao = Task(
description="Encontrar o e-mail de john@example.com",
agent=agente_gmail,
expected_output="E-mail encontrado de john@example.com"
)
# Execute a tarefa
crew = Crew(
agents=[slack_agent],
tasks=[notification_task]
agents=[agente_gmail],
tasks=[tarefa_notificacao]
)
```