query
or input
field. When interacting with a manager agent (an agent designed to orchestrate or utilize other agents), you must also include details about these managed agents within your API call.
managed_agents
array within the API body is crucial when you are interacting with a manager agent. This array explicitly lists the sub-agents that the manager agent has access to and can utilize to fulfill the given query
. It informs the manager agent about the specific tools (other agents) at its disposal, including their unique identifiers and descriptive information.
The managed_agents
array is a list of JSON objects, where each object represents a sub-agent available to the manager agent, as shown below:
managed_agents
array typically contains the following fields:
id
(String):
"68415b37b1a7c0cc7b2be6bd"
name
(String):
[Documentation Agent]
."trial [Documentation Agent]"
or "Documentation [Documentation Agent]"
usage_description
(String):
"documentation"
managed_agents
array in your API request to a manager agent, you enable it to intelligently select and leverage its integrated sub-agents, leading to more robust and capable AI applications that can handle diverse and complex tasks.