Create agent

Create an agent from a config object

En-têtes

xi-api-keystringOptionnel

Paramètres de requête

enable_versioningbooleanOptionnelPar défaut trueDeprecated

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

Requête

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

Réponse

Successful Response
agent_idstring
ID of the created agent

Erreurs

422
Agents Create Request Unprocessable Entity Error