Create agent

Create an agent from a config object

请求头

xi-api-keystring可选

查询参数

enable_versioningboolean可选默认为 trueDeprecated

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

请求

This endpoint expects an object.
conversation_configobject必需
Conversation configuration for an agent
platform_settingsobject可选
Platform settings for the agent are all settings that aren't related to the conversation orchestration and content.
workflowobject可选
Workflow for the agent. This is used to define the flow of the conversation and how the agent interacts with tools.
namestring可选
A name to make the agent easier to find
tagslist of strings可选
Tags to help classify and filter the agent

响应

Successful Response
agent_idstring
ID of the created agent

错误

422
Agents Create Request Unprocessable Entity Error