agents

Patch Agent

局部更新:只写请求里出现过的字段,其余原样留着。

404 而不是「创建一个」:PATCH 一个不存在的对象是调用方弄错了名字,替他建一个空壳只会让 那个错误更晚才被发现。

patch/agents/{name}

Request

  • Base URL: https://api.agent4.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.agent4.io/agents/{name}
  • Auth: none declared

Path parameters

namestring required

Request body

soulstring nullable
taskstring nullable
toolsstring[] nullable
tools_addstring[] nullable
tools_removestring[] nullable
skillsstring[] nullable
skills_addstring[] nullable
skills_removestring[] nullable
knowledge_basesstring[] nullable
knowledge_bases_addstring[] nullable
knowledge_bases_removestring[] nullable
history_windowinteger nullable
max_output_tokensinteger nullable
tool_call_max_tokensinteger nullable
modelstring nullable
publishedboolean nullable
greetingstring nullable
auto_greetingboolean nullable
auto_suggestboolean nullable
suggest_promptstring nullable
ask_formsboolean nullable
proactive_ctaboolean nullable
cta_promptstring nullable
no_match_replystring nullable
reasoningboolean nullable
grounding_requiredboolean nullable
injection_guardboolean nullable
public_sourcesboolean nullable
ambiguity_checkboolean nullable
deep_researchboolean nullable
on_demand_contextboolean nullable
guard_escalationboolean nullable
menu_itemsstring[] nullable

Response

Successful Response

namestring required
idstring nullable
aliasstring nullable
soulstring required
taskstring required
toolsstring[] required
skillsstring[]
knowledge_basesstring[]
history_windowinteger nullable
max_output_tokensinteger nullable
tool_call_max_tokensinteger nullable
modelstring nullable
publishedboolean
greetingstring nullable
auto_greetingboolean
auto_suggestboolean
suggest_promptstring nullable
ask_formsboolean
proactive_ctaboolean
cta_promptstring nullable
no_match_replystring nullable
reasoningboolean
grounding_requiredboolean
injection_guardboolean
public_sourcesboolean
ambiguity_checkboolean
deep_researchboolean
on_demand_contextboolean
guard_escalationboolean
menu_itemsstring[] nullable
sourcestring required

Changes

No recorded changes to this operation across all 1 revision of this API.