Use a slice for the manager request. Make the task use the agent i18n settings (#1446)

This commit is contained in:
Stephen Hankinson
2024-10-14 17:30:05 -03:00
committed by GitHub
parent 916dec2418
commit e2badaa4c6
2 changed files with 4 additions and 2 deletions

View File

@@ -81,6 +81,7 @@ class BaseAgentTools(BaseModel, ABC):
task_with_assigned_agent = Task( # type: ignore # Incompatible types in assignment (expression has type "Task", variable has type "str")
description=task,
agent=agent,
expected_output="Your best answer to your coworker asking you this, accounting for the context shared.",
expected_output=agent.i18n.slice("manager_request"),
i18n=agent.i18n,
)
return agent.execute_task(task_with_assigned_agent, context)