Skip to content
  • Auto
  • Light
  • Dark

Agents

Agents

Agents

Create an Agent
agents.create(AgentCreateParams**kwargs) -> agentAPIAgentAgentCreateResponse
post/v2/gen-ai/agents
Delete an Agent
agents.delete(struuid) -> agentAPIAgentAgentDeleteResponse
delete/v2/gen-ai/agents/{uuid}
List Agents
agents.list(AgentListParams**kwargs) -> agentslistlinksAPILinksmetaAPIMetaAgentListResponse
get/v2/gen-ai/agents
Retrieve an Existing Agent
agents.retrieve(struuid) -> agentAPIAgentAgentRetrieveResponse
get/v2/gen-ai/agents/{uuid}
Update an Agent
agents.update(strpath_uuid, AgentUpdateParams**kwargs) -> agentAPIAgentAgentUpdateResponse
put/v2/gen-ai/agents/{uuid}
Update Agent Status
agents.update_status(strpath_uuid, AgentUpdateStatusParams**kwargs) -> agentAPIAgentAgentUpdateStatusResponse
put/v2/gen-ai/agents/{uuid}/deployment_visibility
API Agent
APIAgentclass

An Agent

ShowShow
anthropic_api_keyAPIAnthropicAPIKeyInfo
optional

Anthropic API Key Info

api_key_infoslist
optional
Optional[List[created_atdatetimecreated_bystrdeleted_atdatetimenamestrsecret_keystruuidstrAPIAgentAPIKeyInfo]]

Api key infos

Hide ParametersShow Parameters
created_atdatetime
optional

Creation date

formatdate-time
created_bystr
optional

Created by

formatuint64
deleted_atdatetime
optional

Deleted date

formatdate-time
namestr
optional

Name

secret_keystr
optional
uuidstr
optional

Uuid

api_keyslist
optional
Optional[List[APIKey]]

Api keys

Hide ParametersShow Parameters
api_keystr
optional

Api key

chatbotbutton_background_colorstrlogostrnamestrprimary_colorstrsecondary_colorstrstarting_messagestrChatbot
optional

A Chatbot

Hide ParametersShow Parameters
button_background_colorstr
optional
namestr
optional

Name of chatbot

primary_colorstr
optional
secondary_colorstr
optional
starting_messagestr
optional
chatbot_identifierslist
optional
Optional[List[ChatbotIdentifier]]

Chatbot identifiers

Hide ParametersShow Parameters
agent_chatbot_identifierstr
optional

Agent chatbot identifier

child_agentslist
optional
Optional[List[anthropic_api_keyAPIAnthropicAPIKeyInfoapi_key_infoslistapi_keyslistchatbotChatbotchatbot_identifierslistchild_agentslistconversation_logs_enabledboolcreated_atdatetimedeploymentDeploymentdescriptionstrfunctionslistguardrailslistif_casestrinstructionstrkintknowledge_baseslistlogging_configLoggingConfigmax_tokensintmodelAPIAgentModelnamestropenai_api_keyAPIOpenAIAPIKeyInfoparent_agentslistproject_idstrprovide_citationsboolregionstrretrieval_methodAPIRetrievalMethodroute_created_atdatetimeroute_created_bystrroute_namestrroute_uuidstrtagslisttemperaturefloattemplateTemplatetop_pfloatupdated_atdatetimeurlstruser_idstruuidstrversion_hashstrworkspaceAPIWorkspaceAPIAgent]]

Child agents

conversation_logs_enabledbool
optional

Whether conversation logs are enabled for the agent

created_atdatetime
optional

Creation date / time

formatdate-time
deploymentcreated_atdatetimenamestrstatusliteralupdated_atdatetimeurlstruuidstrvisibilityAPIDeploymentVisibilityDeployment
optional

Description of deployment

Hide ParametersShow Parameters
created_atdatetime
optional

Creation date / time

formatdate-time
namestr
optional

Name

statusliteral
optional
Optional[Literal["STATUS_UNKNOWN", "STATUS_WAITING_FOR_DEPLOYMENT", "STATUS_DEPLOYING", 6 more]]
Hide ParametersShow Parameters
"STATUS_UNKNOWN"
"STATUS_WAITING_FOR_DEPLOYMENT"
"STATUS_DEPLOYING"
"STATUS_RUNNING"
"STATUS_FAILED"
"STATUS_WAITING_FOR_UNDEPLOYMENT"
"STATUS_UNDEPLOYING"
"STATUS_UNDEPLOYMENT_FAILED"
"STATUS_DELETED"
updated_atdatetime
optional

Last modified

formatdate-time
urlstr
optional

Access your deployed agent here

uuidstr
optional

Unique id

visibilityAPIDeploymentVisibility
optional
  • 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
descriptionstr
optional

Description of agent

functionslist
optional
Optional[List[Function]]
Hide ParametersShow Parameters
api_keystr
optional

Api key

created_atdatetime
optional

Creation date / time

formatdate-time
created_bystr
optional

Created by user id from DO

formatuint64
descriptionstr
optional

Agent description

faas_namestr
optional
faas_namespacestr
optional
input_schemaobject
optional
namestr
optional

Name

output_schemaobject
optional
updated_atdatetime
optional

Last modified

formatdate-time
urlstr
optional

Download your agent here

uuidstr
optional

Unique id

guardrailslist
optional
Optional[List[Guardrail]]

The guardrails the agent is attached to

Hide ParametersShow Parameters
agent_uuidstr
optional
created_atdatetime
optional
formatdate-time
default_responsestr
optional
descriptionstr
optional
guardrail_uuidstr
optional
is_attachedbool
optional
is_defaultbool
optional
metadataobject
optional
namestr
optional
priorityint
optional
formatint32
typeliteral
optional
Optional[Literal["GUARDRAIL_TYPE_UNKNOWN", "GUARDRAIL_TYPE_JAILBREAK", "GUARDRAIL_TYPE_SENSITIVE_DATA", "GUARDRAIL_TYPE_CONTENT_MODERATION"]]
Hide ParametersShow Parameters
"GUARDRAIL_TYPE_UNKNOWN"
"GUARDRAIL_TYPE_JAILBREAK"
"GUARDRAIL_TYPE_SENSITIVE_DATA"
"GUARDRAIL_TYPE_CONTENT_MODERATION"
updated_atdatetime
optional
formatdate-time
uuidstr
optional
if_casestr
optional
instructionstr
optional

Agent instruction. Instructions help your agent to perform its job effectively. See Write Effective Agent Instructions for best practices.

kint
optional
formatint64
knowledge_baseslist
optional
Optional[List[added_to_agent_atdatetimecreated_atdatetimedatabase_idstrembedding_model_uuidstris_publicboollast_indexing_jobAPIIndexingJobnamestrproject_idstrregionstrtagslistupdated_atdatetimeuser_idstruuidstrAPIKnowledgeBase]]

Knowledge bases

Hide ParametersShow Parameters
added_to_agent_atdatetime
optional

Time when the knowledge base was added to the agent

formatdate-time
created_atdatetime
optional

Creation date / time

formatdate-time
database_idstr
optional
embedding_model_uuidstr
optional
is_publicbool
optional

Whether the knowledge base is public or not

last_indexing_jobAPIIndexingJob
optional

IndexingJob description

namestr
optional

Name of knowledge base

project_idstr
optional
regionstr
optional

Region code

tagslist
optional
Optional[List[str]]

Tags to organize related resources

updated_atdatetime
optional

Last modified

formatdate-time
user_idstr
optional

Id of user that created the knowledge base

formatint64
uuidstr
optional

Unique id for knowledge base

logging_configgalileo_project_idstrgalileo_project_namestrlog_stream_idstrlog_stream_namestrLoggingConfig
optional
Hide ParametersShow Parameters
galileo_project_idstr
optional

Galileo project identifier

galileo_project_namestr
optional

Name of the Galileo project

log_stream_idstr
optional

Identifier for the log stream

log_stream_namestr
optional

Name of the log stream

max_tokensint
optional
formatint64
modelAPIAgentModel
optional

Description of a Model

namestr
optional

Agent name

openai_api_keyAPIOpenAIAPIKeyInfo
optional

OpenAI API Key Info

parent_agentslist
optional
Optional[List[anthropic_api_keyAPIAnthropicAPIKeyInfoapi_key_infoslistapi_keyslistchatbotChatbotchatbot_identifierslistchild_agentslistconversation_logs_enabledboolcreated_atdatetimedeploymentDeploymentdescriptionstrfunctionslistguardrailslistif_casestrinstructionstrkintknowledge_baseslistlogging_configLoggingConfigmax_tokensintmodelAPIAgentModelnamestropenai_api_keyAPIOpenAIAPIKeyInfoparent_agentslistproject_idstrprovide_citationsboolregionstrretrieval_methodAPIRetrievalMethodroute_created_atdatetimeroute_created_bystrroute_namestrroute_uuidstrtagslisttemperaturefloattemplateTemplatetop_pfloatupdated_atdatetimeurlstruser_idstruuidstrversion_hashstrworkspaceAPIWorkspaceAPIAgent]]

Parent agents

project_idstr
optional
provide_citationsbool
optional

Whether the agent should provide in-response citations

regionstr
optional

Region code

retrieval_methodAPIRetrievalMethod
optional
  • 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_atdatetime
optional

Creation of route date / time

formatdate-time
route_created_bystr
optional
formatuint64
route_namestr
optional

Route name

route_uuidstr
optional
tagslist
optional
Optional[List[str]]

Agent tag to organize related resources

temperaturefloat
optional
formatfloat
templatecreated_atdatetimedescriptionstrguardrailslistinstructionstrkintknowledge_baseslistlong_descriptionstrmax_tokensintmodelAPIAgentModelnamestrshort_descriptionstrsummarystrtagslisttemperaturefloattemplate_typeliteraltop_pfloatupdated_atdatetimeuuidstrTemplate
optional

Represents an AgentTemplate entity

Hide ParametersShow Parameters
created_atdatetime
optional

The agent template's creation date

formatdate-time
descriptionstr
optional

Deprecated - Use summary instead

guardrailslist
optional
Optional[List[TemplateGuardrail]]

List of guardrails associated with the agent template

Hide ParametersShow Parameters
priorityint
optional

Priority of the guardrail

formatint32
uuidstr
optional

Uuid of the guardrail

instructionstr
optional

Instructions for the agent template

kint
optional

The 'k' value for the agent template

formatint64
knowledge_baseslist
optional
Optional[List[added_to_agent_atdatetimecreated_atdatetimedatabase_idstrembedding_model_uuidstris_publicboollast_indexing_jobAPIIndexingJobnamestrproject_idstrregionstrtagslistupdated_atdatetimeuser_idstruuidstrAPIKnowledgeBase]]

List of knowledge bases associated with the agent template

Hide ParametersShow Parameters
added_to_agent_atdatetime
optional

Time when the knowledge base was added to the agent

formatdate-time
created_atdatetime
optional

Creation date / time

formatdate-time
database_idstr
optional
embedding_model_uuidstr
optional
is_publicbool
optional

Whether the knowledge base is public or not

last_indexing_jobAPIIndexingJob
optional

IndexingJob description

namestr
optional

Name of knowledge base

project_idstr
optional
regionstr
optional

Region code

tagslist
optional
Optional[List[str]]

Tags to organize related resources

updated_atdatetime
optional

Last modified

formatdate-time
user_idstr
optional

Id of user that created the knowledge base

formatint64
uuidstr
optional

Unique id for knowledge base

long_descriptionstr
optional

The long description of the agent template

max_tokensint
optional

The max_tokens setting for the agent template

formatint64
modelAPIAgentModel
optional

Description of a Model

namestr
optional

Name of the agent template

short_descriptionstr
optional

The short description of the agent template

summarystr
optional

The summary of the agent template

tagslist
optional
Optional[List[str]]

List of tags associated with the agent template

temperaturefloat
optional

The temperature setting for the agent template

formatfloat
template_typeliteral
optional
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
Hide ParametersShow Parameters
"AGENT_TEMPLATE_TYPE_STANDARD"
"AGENT_TEMPLATE_TYPE_ONE_CLICK"
top_pfloat
optional

The top_p setting for the agent template

formatfloat
updated_atdatetime
optional

The agent template's last updated date

formatdate-time
uuidstr
optional

Unique id

top_pfloat
optional
formatfloat
updated_atdatetime
optional

Last modified

formatdate-time
urlstr
optional

Access your agent under this url

user_idstr
optional

Id of user that created the agent

formatuint64
uuidstr
optional

Unique agent id

version_hashstr
optional

The latest version of the agent

workspaceAPIWorkspace
optional
API Agent API Key Info
APIAgentAPIKeyInfoclass

Agent API Key Info

ShowShow
created_atdatetime
optional

Creation date

formatdate-time
created_bystr
optional

Created by

formatuint64
deleted_atdatetime
optional

Deleted date

formatdate-time
namestr
optional

Name

secret_keystr
optional
uuidstr
optional

Uuid

API Agent Model
APIAgentModelclass

Description of a Model

ShowShow
agreementAPIAgreement
optional

Agreement Description

created_atdatetime
optional

Creation date / time

formatdate-time
inference_namestr
optional

Internally used name

inference_versionstr
optional

Internally used version

is_foundationalbool
optional

True if it is a foundational model provided by do

metadataobject
optional

Additional meta data

namestr
optional

Name of the model

parent_uuidstr
optional

Unique id of the model, this model is based on

providerliteral
optional
Optional[Literal["MODEL_PROVIDER_DIGITALOCEAN", "MODEL_PROVIDER_ANTHROPIC", "MODEL_PROVIDER_OPENAI"]]
Hide ParametersShow Parameters
"MODEL_PROVIDER_DIGITALOCEAN"
"MODEL_PROVIDER_ANTHROPIC"
"MODEL_PROVIDER_OPENAI"
updated_atdatetime
optional

Last modified

formatdate-time
upload_completebool
optional

Model has been fully uploaded

urlstr
optional

Download url

usecaseslist
optional
Optional[List[Literal["MODEL_USECASE_UNKNOWN", "MODEL_USECASE_AGENT", "MODEL_USECASE_FINETUNED", 4 more]]]

Usecases of the model

Hide ParametersShow Parameters
"MODEL_USECASE_UNKNOWN"
"MODEL_USECASE_AGENT"
"MODEL_USECASE_FINETUNED"
"MODEL_USECASE_KNOWLEDGEBASE"
"MODEL_USECASE_GUARDRAIL"
"MODEL_USECASE_REASONING"
"MODEL_USECASE_SERVERLESS"
uuidstr
optional

Unique id

versionAPIModelVersion
optional

Version Information about a Model

API Anthropic API Key Info
APIAnthropicAPIKeyInfoclass

Anthropic API Key Info

ShowShow
created_atdatetime
optional

Key creation date

formatdate-time
created_bystr
optional

Created by user id from DO

formatuint64
deleted_atdatetime
optional

Key deleted date

formatdate-time
namestr
optional

Name

updated_atdatetime
optional

Key last updated date

formatdate-time
uuidstr
optional

Uuid

API Deployment Visibility
APIDeploymentVisibilitytype
Literal["VISIBILITY_UNKNOWN", "VISIBILITY_DISABLED", "VISIBILITY_PLAYGROUND", 2 more]
  • 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
ShowShow
"VISIBILITY_UNKNOWN"
"VISIBILITY_DISABLED"
"VISIBILITY_PLAYGROUND"
"VISIBILITY_PUBLIC"
"VISIBILITY_PRIVATE"
API OpenAI API Key Info
APIOpenAIAPIKeyInfoclass

OpenAI API Key Info

ShowShow
created_atdatetime
optional

Key creation date

formatdate-time
created_bystr
optional

Created by user id from DO

formatuint64
deleted_atdatetime
optional

Key deleted date

formatdate-time
modelslist
optional
Optional[List[agreementAPIAgreementcreated_atdatetimeinference_namestrinference_versionstris_foundationalboolmetadataobjectnamestrparent_uuidstrproviderliteralupdated_atdatetimeupload_completeboolurlstrusecaseslistuuidstrversionAPIModelVersionAPIAgentModel]]

Models supported by the openAI api key

Hide ParametersShow Parameters
agreementAPIAgreement
optional

Agreement Description

created_atdatetime
optional

Creation date / time

formatdate-time
inference_namestr
optional

Internally used name

inference_versionstr
optional

Internally used version

is_foundationalbool
optional

True if it is a foundational model provided by do

metadataobject
optional

Additional meta data

namestr
optional

Name of the model

parent_uuidstr
optional

Unique id of the model, this model is based on

providerliteral
optional
Optional[Literal["MODEL_PROVIDER_DIGITALOCEAN", "MODEL_PROVIDER_ANTHROPIC", "MODEL_PROVIDER_OPENAI"]]
Hide ParametersShow Parameters
"MODEL_PROVIDER_DIGITALOCEAN"
"MODEL_PROVIDER_ANTHROPIC"
"MODEL_PROVIDER_OPENAI"
updated_atdatetime
optional

Last modified

formatdate-time
upload_completebool
optional

Model has been fully uploaded

urlstr
optional

Download url

usecaseslist
optional
Optional[List[Literal["MODEL_USECASE_UNKNOWN", "MODEL_USECASE_AGENT", "MODEL_USECASE_FINETUNED", 4 more]]]

Usecases of the model

Hide ParametersShow Parameters
"MODEL_USECASE_UNKNOWN"
"MODEL_USECASE_AGENT"
"MODEL_USECASE_FINETUNED"
"MODEL_USECASE_KNOWLEDGEBASE"
"MODEL_USECASE_GUARDRAIL"
"MODEL_USECASE_REASONING"
"MODEL_USECASE_SERVERLESS"
uuidstr
optional

Unique id

versionAPIModelVersion
optional

Version Information about a Model

namestr
optional

Name

updated_atdatetime
optional

Key last updated date

formatdate-time
uuidstr
optional

Uuid

API Retrieval Method
APIRetrievalMethodtype
Literal["RETRIEVAL_METHOD_UNKNOWN", "RETRIEVAL_METHOD_REWRITE", "RETRIEVAL_METHOD_STEP_BACK", 2 more]
  • 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
ShowShow
"RETRIEVAL_METHOD_UNKNOWN"
"RETRIEVAL_METHOD_REWRITE"
"RETRIEVAL_METHOD_STEP_BACK"
"RETRIEVAL_METHOD_SUB_QUERIES"
"RETRIEVAL_METHOD_NONE"
API Workspace
APIWorkspaceclass
ShowShow
agentslist
optional
Optional[List[anthropic_api_keyAPIAnthropicAPIKeyInfoapi_key_infoslistapi_keyslistchatbotChatbotchatbot_identifierslistchild_agentslistconversation_logs_enabledboolcreated_atdatetimedeploymentDeploymentdescriptionstrfunctionslistguardrailslistif_casestrinstructionstrkintknowledge_baseslistlogging_configLoggingConfigmax_tokensintmodelAPIAgentModelnamestropenai_api_keyAPIOpenAIAPIKeyInfoparent_agentslistproject_idstrprovide_citationsboolregionstrretrieval_methodAPIRetrievalMethodroute_created_atdatetimeroute_created_bystrroute_namestrroute_uuidstrtagslisttemperaturefloattemplateTemplatetop_pfloatupdated_atdatetimeurlstruser_idstruuidstrversion_hashstrworkspaceAPIWorkspaceAPIAgent]]

Agents

created_atdatetime
optional

Creation date

formatdate-time
created_bystr
optional

The id of user who created this workspace

formatuint64
created_by_emailstr
optional

The email of the user who created this workspace

deleted_atdatetime
optional

Deleted date

formatdate-time
descriptionstr
optional

Description of the workspace

evaluation_test_caseslist
optional
Optional[List[archived_atdatetimecreated_atdatetimecreated_by_user_emailstrcreated_by_user_idstrdatasetDatasetdataset_namestrdataset_uuidstrdescriptionstrlatest_version_number_of_runsintmetricslistnamestrstar_metricAPIStarMetrictest_case_uuidstrtotal_runsintupdated_atdatetimeupdated_by_user_emailstrupdated_by_user_idstrversionintAPIEvaluationTestCase]]

Evaluations

Hide ParametersShow Parameters
archived_atdatetime
optional
formatdate-time
created_atdatetime
optional
formatdate-time
created_by_user_emailstr
optional
created_by_user_idstr
optional
formatuint64
datasetcreated_atdatetimedataset_namestrdataset_uuidstrfile_sizestrhas_ground_truthboolrow_countintDataset
optional
Hide ParametersShow Parameters
created_atdatetime
optional

Time created at.

formatdate-time
dataset_namestr
optional

Name of the dataset.

dataset_uuidstr
optional

UUID of the dataset.

file_sizestr
optional

The size of the dataset uploaded file in bytes.

formatuint64
has_ground_truthbool
optional

Does the dataset have a ground truth column?

row_countint
optional

Number of rows in the dataset.

formatint64
dataset_namestr
optional
dataset_uuidstr
optional
descriptionstr
optional
latest_version_number_of_runsint
optional
formatint32
metricslist
optional
Optional[List[descriptionstrinvertedboolmetric_namestrmetric_typeliteralmetric_uuidstrmetric_value_typeliteralrange_maxfloatrange_minfloatAPIEvaluationMetric]]
Hide ParametersShow Parameters
descriptionstr
optional
invertedbool
optional

If true, the metric is inverted, meaning that a lower value is better.

metric_namestr
optional
metric_typeliteral
optional
Optional[Literal["METRIC_TYPE_UNSPECIFIED", "METRIC_TYPE_GENERAL_QUALITY", "METRIC_TYPE_RAG_AND_TOOL"]]
Hide ParametersShow Parameters
"METRIC_TYPE_UNSPECIFIED"
"METRIC_TYPE_GENERAL_QUALITY"
"METRIC_TYPE_RAG_AND_TOOL"
metric_uuidstr
optional
metric_value_typeliteral
optional
Optional[Literal["METRIC_VALUE_TYPE_UNSPECIFIED", "METRIC_VALUE_TYPE_NUMBER", "METRIC_VALUE_TYPE_STRING", "METRIC_VALUE_TYPE_PERCENTAGE"]]
Hide ParametersShow Parameters
"METRIC_VALUE_TYPE_UNSPECIFIED"
"METRIC_VALUE_TYPE_NUMBER"
"METRIC_VALUE_TYPE_STRING"
"METRIC_VALUE_TYPE_PERCENTAGE"
range_maxfloat
optional

The maximum value for the metric.

formatfloat
range_minfloat
optional

The minimum value for the metric.

formatfloat
namestr
optional
star_metricAPIStarMetric
optional
test_case_uuidstr
optional
total_runsint
optional
formatint32
updated_atdatetime
optional
formatdate-time
updated_by_user_emailstr
optional
updated_by_user_idstr
optional
formatuint64
versionint
optional
formatint64
namestr
optional

Name of the workspace

updated_atdatetime
optional

Update date

formatdate-time
uuidstr
optional

Unique id

AgentsAPI Keys

Create an Agent API Key
agents.api_keys.create(strpath_agent_uuid, APIKeyCreateParams**kwargs) -> api_key_infoAPIAgentAPIKeyInfoAPIKeyCreateResponse
post/v2/gen-ai/agents/{agent_uuid}/api_keys
Delete API Key for an Agent
agents.api_keys.delete(strapi_key_uuid, APIKeyDeleteParams**kwargs) -> api_key_infoAPIAgentAPIKeyInfoAPIKeyDeleteResponse
delete/v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}
List Agent API Keys
agents.api_keys.list(stragent_uuid, APIKeyListParams**kwargs) -> api_key_infoslistlinksAPILinksmetaAPIMetaAPIKeyListResponse
get/v2/gen-ai/agents/{agent_uuid}/api_keys
Regenerate API Key for an Agent
agents.api_keys.regenerate(strapi_key_uuid, APIKeyRegenerateParams**kwargs) -> api_key_infoAPIAgentAPIKeyInfoAPIKeyRegenerateResponse
put/v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}/regenerate
Update API Key for an Agent
agents.api_keys.update(strpath_api_key_uuid, APIKeyUpdateParams**kwargs) -> api_key_infoAPIAgentAPIKeyInfoAPIKeyUpdateResponse
put/v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}

AgentsChat

AgentsChatCompletions

Creates a model response for the given chat conversation.
agents.chat.completions.create(CompletionCreateParams**kwargs) -> idstrchoiceslistcreatedintmodelstrobjectliteralusageCompletionUsageCompletionCreateResponse
post/chat/completions?agent=true

AgentsEvaluation Datasets

Create Evaluation Dataset
agents.evaluation_datasets.create(EvaluationDatasetCreateParams**kwargs) -> evaluation_dataset_uuidstrEvaluationDatasetCreateResponse
post/v2/gen-ai/evaluation_datasets
Create Presigned URLs for Evaluation Dataset File Upload
agents.evaluation_datasets.create_file_upload_presigned_urls(EvaluationDatasetCreateFileUploadPresignedURLsParams**kwargs) -> request_idstruploadslistEvaluationDatasetCreateFileUploadPresignedURLsResponse
post/v2/gen-ai/evaluation_datasets/file_upload_presigned_urls

AgentsEvaluation Metrics

List Evaluation Metrics
agents.evaluation_metrics.list() -> metricslistEvaluationMetricListResponse
get/v2/gen-ai/evaluation_metrics
List Datacenter Regions
agents.evaluation_metrics.list_regions(EvaluationMetricListRegionsParams**kwargs) -> regionslistEvaluationMetricListRegionsResponse
get/v2/gen-ai/regions

AgentsEvaluation MetricsModels

List Available Models
agents.evaluation_metrics.models.list(ModelListParams**kwargs) -> linksAPILinksmetaAPIMetamodelslistModelListResponse
get/v2/gen-ai/models

AgentsEvaluation MetricsWorkspaces

Create a Workspace
agents.evaluation_metrics.workspaces.create(WorkspaceCreateParams**kwargs) -> workspaceAPIWorkspaceWorkspaceCreateResponse
post/v2/gen-ai/workspaces
Delete a Workspace
agents.evaluation_metrics.workspaces.delete(strworkspace_uuid) -> workspace_uuidstrWorkspaceDeleteResponse
delete/v2/gen-ai/workspaces/{workspace_uuid}
List Workspaces
agents.evaluation_metrics.workspaces.list() -> workspaceslistWorkspaceListResponse
get/v2/gen-ai/workspaces
List Evaluation Test Cases by Workspace
agents.evaluation_metrics.workspaces.list_evaluation_test_cases(strworkspace_uuid) -> evaluation_test_caseslistWorkspaceListEvaluationTestCasesResponse
get/v2/gen-ai/workspaces/{workspace_uuid}/evaluation_test_cases
Retrieve an Existing Workspace
agents.evaluation_metrics.workspaces.retrieve(strworkspace_uuid) -> workspaceAPIWorkspaceWorkspaceRetrieveResponse
get/v2/gen-ai/workspaces/{workspace_uuid}
Update a Workspace
agents.evaluation_metrics.workspaces.update(strpath_workspace_uuid, WorkspaceUpdateParams**kwargs) -> workspaceAPIWorkspaceWorkspaceUpdateResponse
put/v2/gen-ai/workspaces/{workspace_uuid}

AgentsEvaluation MetricsWorkspacesAgents

List agents by Workspace
agents.evaluation_metrics.workspaces.agents.list(strworkspace_uuid, AgentListParams**kwargs) -> agentslistlinksAPILinksmetaAPIMetaAgentListResponse
get/v2/gen-ai/workspaces/{workspace_uuid}/agents
Move Agents to a Workspace
agents.evaluation_metrics.workspaces.agents.move(strpath_workspace_uuid, AgentMoveParams**kwargs) -> workspaceAPIWorkspaceAgentMoveResponse
put/v2/gen-ai/workspaces/{workspace_uuid}/agents

AgentsEvaluation Runs

Run an Evaluation Test Case
agents.evaluation_runs.create(EvaluationRunCreateParams**kwargs) -> evaluation_run_uuidslistEvaluationRunCreateResponse
post/v2/gen-ai/evaluation_runs
Retrieve Results of an Evaluation Run
agents.evaluation_runs.list_results(strevaluation_run_uuid, EvaluationRunListResultsParams**kwargs) -> evaluation_runAPIEvaluationRunlinksAPILinksmetaAPIMetapromptslistEvaluationRunListResultsResponse
get/v2/gen-ai/evaluation_runs/{evaluation_run_uuid}/results
Retrieve Information About an Existing Evaluation Run
agents.evaluation_runs.retrieve(strevaluation_run_uuid) -> evaluation_runAPIEvaluationRunEvaluationRunRetrieveResponse
get/v2/gen-ai/evaluation_runs/{evaluation_run_uuid}
Retrieve Results of an Evaluation Run Prompt
agents.evaluation_runs.retrieve_results(intprompt_id, EvaluationRunRetrieveResultsParams**kwargs) -> promptAPIEvaluationPromptEvaluationRunRetrieveResultsResponse
get/v2/gen-ai/evaluation_runs/{evaluation_run_uuid}/results/{prompt_id}
API Evaluation Metric
APIEvaluationMetricclass
ShowShow
descriptionstr
optional
invertedbool
optional

If true, the metric is inverted, meaning that a lower value is better.

metric_namestr
optional
metric_typeliteral
optional
Optional[Literal["METRIC_TYPE_UNSPECIFIED", "METRIC_TYPE_GENERAL_QUALITY", "METRIC_TYPE_RAG_AND_TOOL"]]
Hide ParametersShow Parameters
"METRIC_TYPE_UNSPECIFIED"
"METRIC_TYPE_GENERAL_QUALITY"
"METRIC_TYPE_RAG_AND_TOOL"
metric_uuidstr
optional
metric_value_typeliteral
optional
Optional[Literal["METRIC_VALUE_TYPE_UNSPECIFIED", "METRIC_VALUE_TYPE_NUMBER", "METRIC_VALUE_TYPE_STRING", "METRIC_VALUE_TYPE_PERCENTAGE"]]
Hide ParametersShow Parameters
"METRIC_VALUE_TYPE_UNSPECIFIED"
"METRIC_VALUE_TYPE_NUMBER"
"METRIC_VALUE_TYPE_STRING"
"METRIC_VALUE_TYPE_PERCENTAGE"
range_maxfloat
optional

The maximum value for the metric.

formatfloat
range_minfloat
optional

The minimum value for the metric.

formatfloat
API Evaluation Metric Result
APIEvaluationMetricResultclass
ShowShow
error_descriptionstr
optional

Error description if the metric could not be calculated.

metric_namestr
optional

Metric name

metric_value_typeliteral
optional
Optional[Literal["METRIC_VALUE_TYPE_UNSPECIFIED", "METRIC_VALUE_TYPE_NUMBER", "METRIC_VALUE_TYPE_STRING", "METRIC_VALUE_TYPE_PERCENTAGE"]]
Hide ParametersShow Parameters
"METRIC_VALUE_TYPE_UNSPECIFIED"
"METRIC_VALUE_TYPE_NUMBER"
"METRIC_VALUE_TYPE_STRING"
"METRIC_VALUE_TYPE_PERCENTAGE"
number_valuefloat
optional

The value of the metric as a number.

formatdouble
reasoningstr
optional

Reasoning of the metric result.

string_valuestr
optional

The value of the metric as a string.

API Evaluation Prompt
APIEvaluationPromptclass
ShowShow
ground_truthstr
optional

The ground truth for the prompt.

inputstr
optional
input_tokensstr
optional

The number of input tokens used in the prompt.

formatuint64
outputstr
optional
output_tokensstr
optional

The number of output tokens used in the prompt.

formatuint64
prompt_chunkslist
optional
Optional[List[PromptChunk]]

The list of prompt chunks.

Hide ParametersShow Parameters
chunk_usage_pctfloat
optional

The usage percentage of the chunk.

formatdouble
chunk_usedbool
optional

Indicates if the chunk was used in the prompt.

index_uuidstr
optional

The index uuid (Knowledge Base) of the chunk.

source_namestr
optional

The source name for the chunk, e.g., the file name or document title.

textstr
optional

Text content of the chunk.

prompt_idint
optional

Prompt ID

formatint64
prompt_level_metric_resultslist
optional
Optional[List[error_descriptionstrmetric_namestrmetric_value_typeliteralnumber_valuefloatreasoningstrstring_valuestrAPIEvaluationMetricResult]]

The metric results for the prompt.

Hide ParametersShow Parameters
error_descriptionstr
optional

Error description if the metric could not be calculated.

metric_namestr
optional

Metric name

metric_value_typeliteral
optional
Optional[Literal["METRIC_VALUE_TYPE_UNSPECIFIED", "METRIC_VALUE_TYPE_NUMBER", "METRIC_VALUE_TYPE_STRING", "METRIC_VALUE_TYPE_PERCENTAGE"]]
Hide ParametersShow Parameters
"METRIC_VALUE_TYPE_UNSPECIFIED"
"METRIC_VALUE_TYPE_NUMBER"
"METRIC_VALUE_TYPE_STRING"
"METRIC_VALUE_TYPE_PERCENTAGE"
number_valuefloat
optional

The value of the metric as a number.

formatdouble
reasoningstr
optional

Reasoning of the metric result.

string_valuestr
optional

The value of the metric as a string.

API Evaluation Run
APIEvaluationRunclass
ShowShow
agent_deletedbool
optional

Whether agent is deleted

agent_namestr
optional

Agent name

agent_uuidstr
optional

Agent UUID.

agent_version_hashstr
optional

Version hash

agent_workspace_uuidstr
optional

Agent workspace uuid

created_by_user_emailstr
optional
created_by_user_idstr
optional
formatuint64
error_descriptionstr
optional

The error description

evaluation_run_uuidstr
optional

Evaluation run UUID.

evaluation_test_case_workspace_uuidstr
optional

Evaluation test case workspace uuid

finished_atdatetime
optional

Run end time.

formatdate-time
pass_statusbool
optional

The pass status of the evaluation run based on the star metric.

queued_atdatetime
optional

Run queued time.

formatdate-time
run_level_metric_resultslist
optional
Optional[List[error_descriptionstrmetric_namestrmetric_value_typeliteralnumber_valuefloatreasoningstrstring_valuestrAPIEvaluationMetricResult]]
Hide ParametersShow Parameters
error_descriptionstr
optional

Error description if the metric could not be calculated.

metric_namestr
optional

Metric name

metric_value_typeliteral
optional
Optional[Literal["METRIC_VALUE_TYPE_UNSPECIFIED", "METRIC_VALUE_TYPE_NUMBER", "METRIC_VALUE_TYPE_STRING", "METRIC_VALUE_TYPE_PERCENTAGE"]]
Hide ParametersShow Parameters
"METRIC_VALUE_TYPE_UNSPECIFIED"
"METRIC_VALUE_TYPE_NUMBER"
"METRIC_VALUE_TYPE_STRING"
"METRIC_VALUE_TYPE_PERCENTAGE"
number_valuefloat
optional

The value of the metric as a number.

formatdouble
reasoningstr
optional

Reasoning of the metric result.

string_valuestr
optional

The value of the metric as a string.

run_namestr
optional

Run name.

star_metric_resultAPIEvaluationMetricResult
optional
started_atdatetime
optional

Run start time.

formatdate-time
statusliteral
optional
Optional[Literal["EVALUATION_RUN_STATUS_UNSPECIFIED", "EVALUATION_RUN_QUEUED", "EVALUATION_RUN_RUNNING_DATASET", 6 more]]

Evaluation Run Statuses

Hide ParametersShow Parameters
"EVALUATION_RUN_STATUS_UNSPECIFIED"
"EVALUATION_RUN_QUEUED"
"EVALUATION_RUN_RUNNING_DATASET"
"EVALUATION_RUN_EVALUATING_RESULTS"
"EVALUATION_RUN_CANCELLING"
"EVALUATION_RUN_CANCELLED"
"EVALUATION_RUN_SUCCESSFUL"
"EVALUATION_RUN_PARTIALLY_SUCCESSFUL"
"EVALUATION_RUN_FAILED"
test_case_descriptionstr
optional

Test case description.

test_case_namestr
optional

Test case name.

test_case_uuidstr
optional

Test-case UUID.

test_case_versionint
optional

Test-case-version.

formatint64

AgentsEvaluation Test Cases

Create Evaluation Test Case.
agents.evaluation_test_cases.create(EvaluationTestCaseCreateParams**kwargs) -> test_case_uuidstrEvaluationTestCaseCreateResponse
post/v2/gen-ai/evaluation_test_cases
List Evaluation Test Cases
agents.evaluation_test_cases.list() -> evaluation_test_caseslistEvaluationTestCaseListResponse
get/v2/gen-ai/evaluation_test_cases
List Evaluation Runs by Test Case
agents.evaluation_test_cases.list_evaluation_runs(strevaluation_test_case_uuid, EvaluationTestCaseListEvaluationRunsParams**kwargs) -> evaluation_runslistEvaluationTestCaseListEvaluationRunsResponse
get/v2/gen-ai/evaluation_test_cases/{evaluation_test_case_uuid}/evaluation_runs
Retrieve Information About an Existing Evaluation Test Case
agents.evaluation_test_cases.retrieve(strtest_case_uuid, EvaluationTestCaseRetrieveParams**kwargs) -> evaluation_test_caseAPIEvaluationTestCaseEvaluationTestCaseRetrieveResponse
get/v2/gen-ai/evaluation_test_cases/{test_case_uuid}
Update an Evaluation Test Case.
agents.evaluation_test_cases.update(strpath_test_case_uuid, EvaluationTestCaseUpdateParams**kwargs) -> test_case_uuidstrversionintEvaluationTestCaseUpdateResponse
put/v2/gen-ai/evaluation_test_cases/{test_case_uuid}
API Evaluation Test Case
APIEvaluationTestCaseclass
ShowShow
archived_atdatetime
optional
formatdate-time
created_atdatetime
optional
formatdate-time
created_by_user_emailstr
optional
created_by_user_idstr
optional
formatuint64
datasetcreated_atdatetimedataset_namestrdataset_uuidstrfile_sizestrhas_ground_truthboolrow_countintDataset
optional
Hide ParametersShow Parameters
created_atdatetime
optional

Time created at.

formatdate-time
dataset_namestr
optional

Name of the dataset.

dataset_uuidstr
optional

UUID of the dataset.

file_sizestr
optional

The size of the dataset uploaded file in bytes.

formatuint64
has_ground_truthbool
optional

Does the dataset have a ground truth column?

row_countint
optional

Number of rows in the dataset.

formatint64
dataset_namestr
optional
dataset_uuidstr
optional
descriptionstr
optional
latest_version_number_of_runsint
optional
formatint32
metricslist
optional
Optional[List[descriptionstrinvertedboolmetric_namestrmetric_typeliteralmetric_uuidstrmetric_value_typeliteralrange_maxfloatrange_minfloatAPIEvaluationMetric]]
Hide ParametersShow Parameters
descriptionstr
optional
invertedbool
optional

If true, the metric is inverted, meaning that a lower value is better.

metric_namestr
optional
metric_typeliteral
optional
Optional[Literal["METRIC_TYPE_UNSPECIFIED", "METRIC_TYPE_GENERAL_QUALITY", "METRIC_TYPE_RAG_AND_TOOL"]]
Hide ParametersShow Parameters
"METRIC_TYPE_UNSPECIFIED"
"METRIC_TYPE_GENERAL_QUALITY"
"METRIC_TYPE_RAG_AND_TOOL"
metric_uuidstr
optional
metric_value_typeliteral
optional
Optional[Literal["METRIC_VALUE_TYPE_UNSPECIFIED", "METRIC_VALUE_TYPE_NUMBER", "METRIC_VALUE_TYPE_STRING", "METRIC_VALUE_TYPE_PERCENTAGE"]]
Hide ParametersShow Parameters
"METRIC_VALUE_TYPE_UNSPECIFIED"
"METRIC_VALUE_TYPE_NUMBER"
"METRIC_VALUE_TYPE_STRING"
"METRIC_VALUE_TYPE_PERCENTAGE"
range_maxfloat
optional

The maximum value for the metric.

formatfloat
range_minfloat
optional

The minimum value for the metric.

formatfloat
namestr
optional
star_metricAPIStarMetric
optional
test_case_uuidstr
optional
total_runsint
optional
formatint32
updated_atdatetime
optional
formatdate-time
updated_by_user_emailstr
optional
updated_by_user_idstr
optional
formatuint64
versionint
optional
formatint64
API Star Metric
APIStarMetricclass
ShowShow
metric_uuidstr
optional
namestr
optional
success_thresholdfloat
optional

The success threshold for the star metric. This is a value that the metric must reach to be considered successful.

formatfloat
success_threshold_pctint
optional

The success threshold for the star metric. This is a percentage value between 0 and 100.

formatint32

AgentsFunctions

Add Function Route to an Agent
agents.functions.create(strpath_agent_uuid, FunctionCreateParams**kwargs) -> agentAPIAgentFunctionCreateResponse
post/v2/gen-ai/agents/{agent_uuid}/functions
Delete Function Route for an Agent
agents.functions.delete(strfunction_uuid, FunctionDeleteParams**kwargs) -> agentAPIAgentFunctionDeleteResponse
delete/v2/gen-ai/agents/{agent_uuid}/functions/{function_uuid}
Update Function Route for an Agent
agents.functions.update(strpath_function_uuid, FunctionUpdateParams**kwargs) -> agentAPIAgentFunctionUpdateResponse
put/v2/gen-ai/agents/{agent_uuid}/functions/{function_uuid}

AgentsKnowledge Bases

Attach Knowledge Bases to an Agent
agents.knowledge_bases.attach(stragent_uuid) -> agentAPIAgentAPILinkKnowledgeBaseOutput
post/v2/gen-ai/agents/{agent_uuid}/knowledge_bases
Attach Knowledge Base to an Agent
agents.knowledge_bases.attach_single(strknowledge_base_uuid, KnowledgeBaseAttachSingleParams**kwargs) -> agentAPIAgentAPILinkKnowledgeBaseOutput
post/v2/gen-ai/agents/{agent_uuid}/knowledge_bases/{knowledge_base_uuid}
Detach Knowledge Base from an Agent
agents.knowledge_bases.detach(strknowledge_base_uuid, KnowledgeBaseDetachParams**kwargs) -> agentAPIAgentKnowledgeBaseDetachResponse
delete/v2/gen-ai/agents/{agent_uuid}/knowledge_bases/{knowledge_base_uuid}
API Link Knowledge Base Output
APILinkKnowledgeBaseOutputclass

Information about a linked knowledge base

ShowShow

AgentsRoutes

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}
Delete Agent Route for an Agent
agents.routes.delete(strchild_agent_uuid, RouteDeleteParams**kwargs) -> child_agent_uuidstrparent_agent_uuidstrRouteDeleteResponse
delete/v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}
Update Agent Route for an Agent
agents.routes.update(strpath_child_agent_uuid, RouteUpdateParams**kwargs) -> child_agent_uuidstrparent_agent_uuidstrrollbackbooluuidstrRouteUpdateResponse
put/v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}
View Agent Routes
agents.routes.view(struuid) -> childrenlistRouteViewResponse
get/v2/gen-ai/agents/{uuid}/child_agents

AgentsVersions

List Agent Versions
agents.versions.list(struuid, VersionListParams**kwargs) -> agent_versionslistlinksAPILinksmetaAPIMetaVersionListResponse
get/v2/gen-ai/agents/{uuid}/versions
Rollback to Agent Version
agents.versions.update(strpath_uuid, VersionUpdateParams**kwargs) -> audit_headerAuditHeaderversion_hashstrVersionUpdateResponse
put/v2/gen-ai/agents/{uuid}/versions