Agentic.Subagent.DelegateTask (agentic v0.2.2)

Copy Markdown

Tool definition for delegating tasks to subagents.

The delegate_task tool allows the main agent to spawn a bounded subagent that runs Agentic.run/1 with a separate context. The subagent inherits the workspace and callbacks but runs with reduced max_turns and an incremented subagent_depth.

Subagents are synchronous in V2.0 — the main agent blocks until the subagent completes.

Summary

Functions

Returns the tool definition map.

Execute the delegate_task tool.

Functions

definition()

Returns the tool definition map.

execute(input, ctx)

Execute the delegate_task tool.