agent-zero/prompts/agent.system.tool.call_sub.md
Alessandro b9153f718e
Some checks are pending
Build And Publish Docker Images / plan (push) Waiting to run
Build And Publish Docker Images / build (push) Blocked by required conditions
Preserve subordinate agent profiles
Validate call_subordinate profile arguments against available agent profiles so missing profiles fail as repairable errors. Persist each agent's profile in saved chats and avoid flattening existing subordinate profiles during profile switches, settings refresh, or restart reload.
2026-06-17 13:07:22 +02:00

1.1 KiB

call_subordinate

delegate research or complex subtasks to a specialized agent. args: message, optional profile, reset

  • profile: optional prompt profile key for the subordinate; when provided, it must exactly match an available profile; leave empty for the default profile
  • reset: use json boolean true for the first message or when changing profile; use false to continue
  • message: define role, goal, and the concrete task after the subordinate returns, answer from its result directly when it satisfies the user request do not repeat the same solving work or call extra tools after a sufficient subordinate result example:
{
  "thoughts": ["Need focused external research before I continue."],
  "headline": "Delegating research subtask",
  "tool_name": "call_subordinate",
  "tool_args": {
    "profile": "researcher",
    "message": "Research Italy AI trends and return key findings.",
    "reset": true
  }
}

reuse long subordinate output with §§include(path) instead of rewriting it {{if agent_profiles}} available profiles: {{agent_profiles}} {{endif}}