Create agent

Create an agent from a config object

Cabeçalhos

xi-api-keystringOpcional

Parâmetros de consulta

enable_versioningbooleanOpcionalPadrão é trueDeprecated

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

Solicitação

This endpoint expects an object.
conversation_configobjectObrigatório
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

Resposta

Successful Response
agent_idstring
ID of the created agent

Erros

422
Agents Create Request Unprocessable Entity Error