Skip to main content

agent_routes

Creates, updates, deletes, gets or lists an agent_routes resource.

Overview

Nameagent_routes
TypeResource
Iddigitalocean.genai.agent_routes

Fields

The following fields are returned by SELECT queries:

A successful response.

NameDatatypeDescription
namestringAgent name (example: example name)
project_idstring (example: 123e4567-e89b-12d3-a456-426614174000)
user_idstring (uint64)Id of user that created the agent (example: 12345)
route_namestringRoute name (example: example name)
anthropic_api_keyobjectAnthropic API Key Info
api_key_infosarrayApi key infos
api_keysarrayApi keys
chatbotobjectA Chatbot
chatbot_identifiersarrayChatbot identifiers
child_agentsarrayChild agents
conversation_logs_enabledbooleanWhether conversation logs are enabled for the agent
created_atstring (date-time)Creation date / time (example: 2023-01-01T00:00:00Z)
deploymentobjectDescription of deployment
descriptionstringDescription of agent (example: example string)
functionsarray
guardrailsarrayThe guardrails the agent is attached to
if_casestring (example: example string)
instructionstringAgent instruction. Instructions help your agent to perform its job effectively. See Write Effective Agent Instructions for best practices. (example: example string)
kinteger (int64)
knowledge_basesarrayKnowledge bases
logging_configobject
max_tokensinteger (int64)
modelobjectDescription of a Model
openai_api_keyobjectOpenAI API Key Info
parent_agentsarrayParent agents
provide_citationsbooleanWhether the agent should provide in-response citations
regionstringRegion code (example: example string)
retrieval_methodstring- 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 (default: RETRIEVAL_METHOD_UNKNOWN, example: RETRIEVAL_METHOD_UNKNOWN)
route_created_atstring (date-time)Creation of route date / time (example: 2023-01-01T00:00:00Z)
route_created_bystring (uint64) (example: 12345)
route_uuidstring (example: 123e4567-e89b-12d3-a456-426614174000)
tagsarrayAgent tag to organize related resources
temperaturenumber (float)
templateobjectRepresents an AgentTemplate entity
top_pnumber (float)
updated_atstring (date-time)Last modified (example: 2023-01-01T00:00:00Z)
urlstringAccess your agent under this url (example: example string)
uuidstringUnique agent id (example: 123e4567-e89b-12d3-a456-426614174000)
version_hashstringThe latest version of the agent (example: example string)
workspaceobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
genai_get_agent_childrenselectuuidTo view agent routes for an agent, send a GET requtest to /v2/gen-ai/agents/{uuid}/child_agents.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
uuidstringAgent id (example: "123e4567-e89b-12d3-a456-426614174000")

SELECT examples

To view agent routes for an agent, send a GET requtest to /v2/gen-ai/agents/{uuid}/child_agents.

SELECT
name,
project_id,
user_id,
route_name,
anthropic_api_key,
api_key_infos,
api_keys,
chatbot,
chatbot_identifiers,
child_agents,
conversation_logs_enabled,
created_at,
deployment,
description,
functions,
guardrails,
if_case,
instruction,
k,
knowledge_bases,
logging_config,
max_tokens,
model,
openai_api_key,
parent_agents,
provide_citations,
region,
retrieval_method,
route_created_at,
route_created_by,
route_uuid,
tags,
temperature,
template,
top_p,
updated_at,
url,
uuid,
version_hash,
workspace
FROM digitalocean.genai.agent_routes
WHERE uuid = '{{ uuid }}' -- required;