Skip to main content

Module task

Module task 

Source
Expand description

Task tools for delegated child runs.

The Task tool allows the main agent to delegate specialized work to focused child runs. Each child run gets bounded context and the permissions declared by its agent definition.

§Usage

{
  "agent": "explore",
  "description": "Find authentication code",
  "prompt": "Search for files related to user authentication..."
}

Structs§

ParallelTaskParams
Parameters for parallel task execution
ParallelTaskTool
ParallelTaskTool allows the LLM to fan out multiple delegated tasks concurrently.
TaskExecutor
Task executor for delegated child runs.
TaskParams
Task tool parameters
TaskResult
Task tool result
TaskTool
TaskTool wraps TaskExecutor as a Tool for registration in ToolExecutor. This allows the LLM to delegate tasks through the standard tool interface.

Functions§

parallel_task_params_schema
Get the JSON schema for ParallelTaskParams
task_params_schema
Get the JSON schema for TaskParams