Create agent

Create an agent from a config object

Encabezados

xi-api-keystringOpcional

Parámetros de consulta

enable_versioningbooleanOpcionalValor predeterminado: trueDeprecated

Deprecated: all agents are versioned. This parameter is ignored.

Solicitud

This endpoint expects an object.
conversation_configobjectRequerido
Conversation configuration for an agent
platform_settingsobjectOpcional
Platform settings for the agent are all settings that aren't related to the conversation orchestration and content.
workflowobjectOpcional
Workflow for the agent. This is used to define the flow of the conversation and how the agent interacts with tools.
namestringOpcional
A name to make the agent easier to find
tagslist of stringsOpcional
Tags to help classify and filter the agent

Respuesta

Successful Response
agent_idstring
ID of the created agent

Errores

422
Agents Create Request Unprocessable Entity Error