Contents

Create Agent

agent_create · Tools · Agents

Define a reusable agent role in the team: a name and the prompt that states the role

Parameters

NameTypeRequiredDescription
compress_historybooleanNoWhen a session grows too long, compress its dropped history into images of its text instead of summarising it. Only some models support it; others summarise. Omit to summarise.
custom_modelobjectNoLLM override. Omit or null to inherit the plugin model.
disabled_tool_groupsstring[]NoKeys of default or workspace tool groups the new agent does not get, from tool_groups.
fallback_modelsobject[]NoLLM models tried in order when this role's model cannot answer; replaces the plugin's fallback models, and an empty list means none. Omit or null to inherit them.
max_turnsintegerNoHow many turns one run of this agent may take before it returns. Omit it unless the work needs a wider or tighter budget than the default.
memory_recallobject | objectNoThe memory namespaces each message to this agent recalls from: all of them (including ones created later), only the listed ones, or null for no recall. Omit to recall from all.
namestringYesWhat this agent is called. Short, and distinct from the roles agent_list already shows.
system_promptstringYesThe role: its specialization, responsibilities, and how it should work. It is read fresh on every turn, so it can be rewritten later without disturbing live sessions.
temperaturenumberNoSampling temperature. Use null to leave the model's own.
tool_selectionobject[]NoTool groups added beside the default and workspace groups. Only a person can add tools: from an agent this must be omitted or empty, and a missing group is asked for with request_tool.
voicestringNoVoice id this role speaks its replies in. Omit or null to inherit the plugin voice.