Create agent

Create an agent from a config object

Header

xi-api-keystringOptional

Abfrageparameter

enable_versioningbooleanOptionalStandardwert ist trueDeprecated

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

Anfrage

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

Antwort

Successful Response
agent_idstring
ID of the created agent

Fehler

422
Agents Create Request Unprocessable Entity Error