Contents

Update Agent

agent_update · Tools · Agents

Change an agent role's instructions, runtime settings, memory, or run budget

Parameters

NameTypeRequiredDescription
agent_idstringYesAgent id from agent_list. Do not invent it.
compress_historybooleanNoWhether a session grown too long compresses its dropped history into images of its text (true) or summarises it (false). Only some models support images; others summarise. Omission leaves unchanged.
custom_modelobjectNoLLM override. Null restores inheritance; omission leaves unchanged.
disabled_tool_groupsstring[]NoKeys of default or workspace tool groups this agent does not have, stated whole. Omission leaves unchanged.
fallback_modelsobject[]NoLLM models tried in order when this role's model cannot answer, stated whole; replaces the shared fallback models, and an empty list means none. Null restores inheritance; omission leaves unchanged.
max_turnsintegerNoHow many turns one run may take. Omit to leave it.
memory_recallobject | objectNoThe memory namespaces each message recalls from: all of them (including ones created later), only the listed ones, or null for no recall. Omission leaves unchanged.
namestringNoWhat this role is called, across every session of it. Not your own name: that is your session's title. Omit to leave it.
system_promptstringNoThe role: what this agent is for and how it works. Omit to leave it.
temperaturenumberNoSampling temperature; null puts it back to the model's own. Omit to leave it.
tool_selectionobject[]NoTool groups added to this agent, stated whole: replaces every addition. Empty clears additions, not default or workspace tools; omission leaves unchanged. Not with tool_selection_edits.
tool_selection_editsobject | object | object[]NoChanges to single added groups, applied in order; ids are those agent_read shows, and all resolve against that read. Not with tool_selection.
voicestringNoVoice id this role speaks its replies in. Null restores inheritance; omission leaves unchanged.