Agent Instructions

Manage Agent Instructions, which are agents configured directly via conversation prompts. These endpoints allow you to create, retrieve, publish, and execute draft Agent instructions.

Upsert Draft Instruction

put

Upsert the draft version of the instruction

路径参数
agent_idstring必填

The UUID of the agent

查询参数
tenant_idany of可选

Tenant Id

Example: 40d39c4b-9585-4123-8fd4-f1cc23a1184c
string可选
null可选
tenant_unit_idany of可选

Tenant Unit ID

Example: da114de3-d7e6-4161-bc55-0ce85dbee589
string可选
null可选
请求体

The request body

created_byany of可选
string可选
null可选
updated_byany of可选
string可选
null可选
created_by_roleany of可选
string可选
null可选
updated_by_roleany of可选
string可选
null可选
created_timeany of可选
string · date-time可选
null可选
updated_timeany of可选
string · date-time可选
null可选
llm_configobject必填

Configuration for the LLM model_name

structured_promptobject · StructuredPrompt必填

Structured prompt in JSON format

text_promptstring必填

Textual prompt for the agent

agent_modestring必填

Mode of operation for the agent

product_retrieval_configany of可选

Configuration for the product retrieval used

object可选
null可选
featuresany of可选

Additional features in JSON format

object可选
null可选
variablesany of可选

Variables in JSON format

object[]可选
null可选
响应
chevron-right
200

Successful Response

application/json
put
/admin/api/v2/agents/{agent_id}/instructions/draft

Get Draft Instruction

get

Get the draft version of the instruction

路径参数
agent_idstring必填

The UUID of the agent

查询参数
tenant_idany of可选

Tenant Id

Example: 40d39c4b-9585-4123-8fd4-f1cc23a1184c
string可选
null可选
tenant_unit_idany of可选

Tenant Unit ID

Example: da114de3-d7e6-4161-bc55-0ce85dbee589
string可选
null可选
响应
chevron-right
200

Successful Response

application/json
get
/admin/api/v2/agents/{agent_id}/instructions/draft

Publish Draft Instruction

post

Get the draft version of the instruction

路径参数
agent_idstring必填

The UUID of the agent

查询参数
tenant_idany of可选

Tenant Id

Example: 40d39c4b-9585-4123-8fd4-f1cc23a1184c
string可选
null可选
tenant_unit_idany of可选

Tenant Unit ID

Example: da114de3-d7e6-4161-bc55-0ce85dbee589
string可选
null可选
响应
chevron-right
200

Successful Response

application/json
post
/admin/api/v2/agents/{agent_id}/instructions/publish

List Agent Instructions

get
路径参数
agent_idstring必填

The UUID of the agent

查询参数
pageinteger可选

The page number

Default: 1
page_sizeinteger可选

The number of items per page

Default: 10
tenant_idany of可选

Tenant Id

Example: 40d39c4b-9585-4123-8fd4-f1cc23a1184c
string可选
null可选
tenant_unit_idany of可选

Tenant Unit ID

Example: da114de3-d7e6-4161-bc55-0ce85dbee589
string可选
null可选
响应
chevron-right
200

Successful Response

application/json
get
/admin/api/v2/agents/{agent_id}/instructions

Run Specific Instruction

post

Run a specific instruction by ID

路径参数
agent_idstring · uuid必填Example: e06f8e4f-fb57-450d-a8f1-661c7d655769
查询参数
tenant_idany of可选

Tenant Id

Example: 40d39c4b-9585-4123-8fd4-f1cc23a1184c
string可选
null可选
tenant_unit_idany of可选

Tenant Unit ID

Example: da114de3-d7e6-4161-bc55-0ce85dbee589
string可选
null可选
请求体
queryany of可选Default: ""
string可选
null可选
inputsany of可选

Input variables

Example: {"var1":"1","var2":2}
object可选
null可选
streamingboolean可选Default: false
filesany of可选Default: []
string[]可选
null可选
response_typeany of可选Default: wfx
string可选
null可选
wfx_contextany of可选Default: {}
object可选
null可选
conversation_idany of可选
string可选
null可选
响应
chevron-right
200

Successful Response

application/json
响应string
post
/admin/api/v2/agents/{agent_id}/instructions/draft/runs

最后更新于

这有帮助吗?