Create agent

Create an agent from a config object

Nagłówki

xi-api-keystringOpcjonalny

Parametry zapytania

enable_versioningbooleanOpcjonalnyDomyślnie trueDeprecated

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

Żądanie

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

Odpowiedź

Successful Response
agent_idstring
ID of the created agent

Błędy

422
Agents Create Request Unprocessable Entity Error