Skip to main content

Module agents

Module agents 

Source
Expand description

Agents tool — list and spawn subagent types.

Provides two tools:

  • agents — List available subagent configurations
  • spawn_subagent — Spawn a subagent to handle an isolated task

Mirrors opendev/core/context_engineering/tools/implementations/agents_tool.py and the subagent spawning logic from the Python react loop.

Structs§

AgentsTool
Tool for listing available subagent types.
ChannelProgressCallback
Progress callback that sends events through an mpsc channel.
SpawnSubagentTool
Tool that spawns and runs a subagent to handle an isolated task.

Enums§

SubagentEvent
Events emitted by a running subagent, consumed by the parent agent or TUI.