## View `agents.routes.view(struuid) -> RouteViewResponse` **get** `/v2/gen-ai/agents/{uuid}/child_agents` To view agent routes for an agent, send a GET requtest to `/v2/gen-ai/agents/{uuid}/child_agents`. ### Parameters - **uuid:** `str` ### Returns - `class RouteViewResponse` Child list for an agent - **children:** `Optional[List[APIAgent]]` Child agents - **anthropic\_api\_key:** `Optional[APIAnthropicAPIKeyInfo]` Anthropic API Key Info - **api\_key\_infos:** `Optional[List[APIAgentAPIKeyInfo]]` Api key infos - **created\_at:** `Optional[datetime]` Creation date - **created\_by:** `Optional[str]` Created by - **deleted\_at:** `Optional[datetime]` Deleted date - **name:** `Optional[str]` Name - **secret\_key:** `Optional[str]` - **uuid:** `Optional[str]` Uuid - **api\_keys:** `Optional[List[APIKey]]` Api keys - **api\_key:** `Optional[str]` Api key - **chatbot:** `Optional[Chatbot]` A Chatbot - **button\_background\_color:** `Optional[str]` - **logo:** `Optional[str]` - **name:** `Optional[str]` Name of chatbot - **primary\_color:** `Optional[str]` - **secondary\_color:** `Optional[str]` - **starting\_message:** `Optional[str]` - **chatbot\_identifiers:** `Optional[List[ChatbotIdentifier]]` Chatbot identifiers - **agent\_chatbot\_identifier:** `Optional[str]` Agent chatbot identifier - **child\_agents:** `Optional[List[APIAgent]]` Child agents - **conversation\_logs\_enabled:** `Optional[bool]` Whether conversation logs are enabled for the agent - **created\_at:** `Optional[datetime]` Creation date / time - **deployment:** `Optional[Deployment]` Description of deployment - **created\_at:** `Optional[datetime]` Creation date / time - **name:** `Optional[str]` Name - **status:** `Optional[Literal["STATUS_UNKNOWN", "STATUS_WAITING_FOR_DEPLOYMENT", "STATUS_DEPLOYING", 6 more]]` - `"STATUS_UNKNOWN"` - `"STATUS_WAITING_FOR_DEPLOYMENT"` - `"STATUS_DEPLOYING"` - `"STATUS_RUNNING"` - `"STATUS_FAILED"` - `"STATUS_WAITING_FOR_UNDEPLOYMENT"` - `"STATUS_UNDEPLOYING"` - `"STATUS_UNDEPLOYMENT_FAILED"` - `"STATUS_DELETED"` - **updated\_at:** `Optional[datetime]` Last modified - **url:** `Optional[str]` Access your deployed agent here - **uuid:** `Optional[str]` Unique id - **visibility:** `Optional[APIDeploymentVisibility]` - VISIBILITY_UNKNOWN: The status of the deployment is unknown - VISIBILITY_DISABLED: The deployment is disabled and will no longer service requests - VISIBILITY_PLAYGROUND: Deprecated: No longer a valid state - VISIBILITY_PUBLIC: The deployment is public and will service requests from the public internet - VISIBILITY_PRIVATE: The deployment is private and will only service requests from other agents, or through API keys - **description:** `Optional[str]` Description of agent - **functions:** `Optional[List[Function]]` - **api\_key:** `Optional[str]` Api key - **created\_at:** `Optional[datetime]` Creation date / time - **created\_by:** `Optional[str]` Created by user id from DO - **description:** `Optional[str]` Agent description - **faas\_name:** `Optional[str]` - **faas\_namespace:** `Optional[str]` - **input\_schema:** `Optional[object]` - **name:** `Optional[str]` Name - **output\_schema:** `Optional[object]` - **updated\_at:** `Optional[datetime]` Last modified - **url:** `Optional[str]` Download your agent here - **uuid:** `Optional[str]` Unique id - **guardrails:** `Optional[List[Guardrail]]` The guardrails the agent is attached to - **agent\_uuid:** `Optional[str]` - **created\_at:** `Optional[datetime]` - **default\_response:** `Optional[str]` - **description:** `Optional[str]` - **guardrail\_uuid:** `Optional[str]` - **is\_attached:** `Optional[bool]` - **is\_default:** `Optional[bool]` - **metadata:** `Optional[object]` - **name:** `Optional[str]` - **priority:** `Optional[int]` - **type:** `Optional[Literal["GUARDRAIL_TYPE_UNKNOWN", "GUARDRAIL_TYPE_JAILBREAK", "GUARDRAIL_TYPE_SENSITIVE_DATA", "GUARDRAIL_TYPE_CONTENT_MODERATION"]]` - `"GUARDRAIL_TYPE_UNKNOWN"` - `"GUARDRAIL_TYPE_JAILBREAK"` - `"GUARDRAIL_TYPE_SENSITIVE_DATA"` - `"GUARDRAIL_TYPE_CONTENT_MODERATION"` - **updated\_at:** `Optional[datetime]` - **uuid:** `Optional[str]` - **if\_case:** `Optional[str]` - **instruction:** `Optional[str]` Agent instruction. Instructions help your agent to perform its job effectively. See [Write Effective Agent Instructions](https://docs.digitalocean.com/products/genai-platform/concepts/best-practices/#agent-instructions) for best practices. - **k:** `Optional[int]` - **knowledge\_bases:** `Optional[List[APIKnowledgeBase]]` Knowledge bases - **added\_to\_agent\_at:** `Optional[datetime]` Time when the knowledge base was added to the agent - **created\_at:** `Optional[datetime]` Creation date / time - **database\_id:** `Optional[str]` - **embedding\_model\_uuid:** `Optional[str]` - **is\_public:** `Optional[bool]` Whether the knowledge base is public or not - **last\_indexing\_job:** `Optional[APIIndexingJob]` IndexingJob description - **name:** `Optional[str]` Name of knowledge base - **project\_id:** `Optional[str]` - **region:** `Optional[str]` Region code - **tags:** `Optional[List[str]]` Tags to organize related resources - **updated\_at:** `Optional[datetime]` Last modified - **user\_id:** `Optional[str]` Id of user that created the knowledge base - **uuid:** `Optional[str]` Unique id for knowledge base - **logging\_config:** `Optional[LoggingConfig]` - **galileo\_project\_id:** `Optional[str]` Galileo project identifier - **galileo\_project\_name:** `Optional[str]` Name of the Galileo project - **log\_stream\_id:** `Optional[str]` Identifier for the log stream - **log\_stream\_name:** `Optional[str]` Name of the log stream - **max\_tokens:** `Optional[int]` - **model:** `Optional[APIAgentModel]` Description of a Model - **name:** `Optional[str]` Agent name - **openai\_api\_key:** `Optional[APIOpenAIAPIKeyInfo]` OpenAI API Key Info - **parent\_agents:** `Optional[List[APIAgent]]` Parent agents - **project\_id:** `Optional[str]` - **provide\_citations:** `Optional[bool]` Whether the agent should provide in-response citations - **region:** `Optional[str]` Region code - **retrieval\_method:** `Optional[APIRetrievalMethod]` - RETRIEVAL_METHOD_UNKNOWN: The retrieval method is unknown - RETRIEVAL_METHOD_REWRITE: The retrieval method is rewrite - RETRIEVAL_METHOD_STEP_BACK: The retrieval method is step back - RETRIEVAL_METHOD_SUB_QUERIES: The retrieval method is sub queries - RETRIEVAL_METHOD_NONE: The retrieval method is none - **route\_created\_at:** `Optional[datetime]` Creation of route date / time - **route\_created\_by:** `Optional[str]` - **route\_name:** `Optional[str]` Route name - **route\_uuid:** `Optional[str]` - **tags:** `Optional[List[str]]` Agent tag to organize related resources - **temperature:** `Optional[float]` - **template:** `Optional[Template]` Represents an AgentTemplate entity - **created\_at:** `Optional[datetime]` The agent template's creation date - **description:** `Optional[str]` Deprecated - Use summary instead - **guardrails:** `Optional[List[TemplateGuardrail]]` List of guardrails associated with the agent template - **priority:** `Optional[int]` Priority of the guardrail - **uuid:** `Optional[str]` Uuid of the guardrail - **instruction:** `Optional[str]` Instructions for the agent template - **k:** `Optional[int]` The 'k' value for the agent template - **knowledge\_bases:** `Optional[List[APIKnowledgeBase]]` List of knowledge bases associated with the agent template - **added\_to\_agent\_at:** `Optional[datetime]` Time when the knowledge base was added to the agent - **created\_at:** `Optional[datetime]` Creation date / time - **database\_id:** `Optional[str]` - **embedding\_model\_uuid:** `Optional[str]` - **is\_public:** `Optional[bool]` Whether the knowledge base is public or not - **last\_indexing\_job:** `Optional[APIIndexingJob]` IndexingJob description - **name:** `Optional[str]` Name of knowledge base - **project\_id:** `Optional[str]` - **region:** `Optional[str]` Region code - **tags:** `Optional[List[str]]` Tags to organize related resources - **updated\_at:** `Optional[datetime]` Last modified - **user\_id:** `Optional[str]` Id of user that created the knowledge base - **uuid:** `Optional[str]` Unique id for knowledge base - **long\_description:** `Optional[str]` The long description of the agent template - **max\_tokens:** `Optional[int]` The max_tokens setting for the agent template - **model:** `Optional[APIAgentModel]` Description of a Model - **name:** `Optional[str]` Name of the agent template - **short\_description:** `Optional[str]` The short description of the agent template - **summary:** `Optional[str]` The summary of the agent template - **tags:** `Optional[List[str]]` List of tags associated with the agent template - **temperature:** `Optional[float]` The temperature setting for the agent template - **template\_type:** `Optional[Literal["AGENT_TEMPLATE_TYPE_STANDARD", "AGENT_TEMPLATE_TYPE_ONE_CLICK"]]` - AGENT_TEMPLATE_TYPE_STANDARD: The standard agent template - AGENT_TEMPLATE_TYPE_ONE_CLICK: The one click agent template - `"AGENT_TEMPLATE_TYPE_STANDARD"` - `"AGENT_TEMPLATE_TYPE_ONE_CLICK"` - **top\_p:** `Optional[float]` The top_p setting for the agent template - **updated\_at:** `Optional[datetime]` The agent template's last updated date - **uuid:** `Optional[str]` Unique id - **top\_p:** `Optional[float]` - **updated\_at:** `Optional[datetime]` Last modified - **url:** `Optional[str]` Access your agent under this url - **user\_id:** `Optional[str]` Id of user that created the agent - **uuid:** `Optional[str]` Unique agent id - **version\_hash:** `Optional[str]` The latest version of the agent - **workspace:** `Optional[APIWorkspace]` ### Example ```python from do_gradientai import GradientAI client = GradientAI() response = client.agents.routes.view( "uuid", ) print(response.children) ```