Add
Add Agent Route to an Agent
agents.routes.add(strpath_child_agent_uuid, RouteAddParams**kwargs) -> child_agent_uuidstrparent_agent_uuidstrRouteAddResponse
post/v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}
To add an agent route to an agent, send a POST request to /v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}
.
Parameters
parent_agent_uuidstr
child_agent_uuidstr
child_agent_uuidstr
if_casestr
optional
parent_agent_uuidstr
route_namestr
optional
Name of route
Returns
RouteAddResponseclass
Information about a newly linked agent
from do_gradientai import GradientAI
client = GradientAI()
response = client.agents.routes.add(
path_child_agent_uuid="\"123e4567-e89b-12d3-a456-426614174000\"",
path_parent_agent_uuid="\"123e4567-e89b-12d3-a456-426614174000\"",
)
print(response.child_agent_uuid)
200 Example
{
"child_agent_uuid": "\"123e4567-e89b-12d3-a456-426614174000\"",
"parent_agent_uuid": "\"123e4567-e89b-12d3-a456-426614174000\""
}