Expand description
Ergonomic child-session runner facade over the canonical spawn core.
ChildRunner is a thin wrapper around the existing SpawnContext (it
does NOT introduce a parallel RuntimeDeps god-struct). It builds a
SpawnJob and delegates to crate::sdk::spawn::run_child_spawn — the
single canonical spawn path.
Sub-agents are plain full agents: there is no per-role tool trimming, so the
job’s disabled_tools is always None here (the unrelated global
config.disabled_tools path is applied elsewhere, not via this runner).
The assignment prompt and system prompt already live in the persisted child
session (matching real spawn semantics: ExecuteRequest.initial_message is
empty; the last user message in the child drives execution). RunChildInput
therefore stays minimal.
Structs§
- Child
Runner - Ergonomic facade for child spawns.
- RunChild
Input - Minimal input to run a child session.
Functions§
- child_
runner - Construct a
ChildRunnerfrom an existingSpawnContext.