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