-
Notifications
You must be signed in to change notification settings - Fork 807
Open
Feature
Copy link
Labels
enhancementNew feature or requestNew feature or request
Description
To reproduce, start the orchestrator without any agents.
orchestrator = Orchestrator(
name=ORCHESTRATOR_NAME,
llm_factory=OpenAIAugmentedLLM,
available_agents=[],
plan_type="iterative",
)
await orchestrator.generate_str(message="anything")
For actual use case, this can be reproduced with an impossible task that cannot be accomplished with the available agents.
orchestrator = Orchestrator(
name=ORCHESTRATOR_NAME,
llm_factory=OpenAIAugmentedLLM,
available_agents=[data_collection_agent],
plan_type="iterative",
)
await orchestrator.generate_str(message="Collect data and produce a summary of the data")
They would fail with an error from raise ValueError(f"No agent found matching {task.agent}")
Suggested fixes:
- Raise an error with a more useful error message, something like the following:
The planner created a task to {task.description} but there isn't an agent suitable for the task, consider adding an agent.
- Improve the system prompt of the planner to the following:
- I am not sure why
List of MCP server names to use for the taskis in the prompt. I don't think returning the list of MCP servers works? I think this is for ServerTask but I don't see ServerTask being referenced in Step. Should probably be removed.
Reactions are currently unavailable
Metadata
Metadata
Labels
enhancementNew feature or requestNew feature or request