Documentation
¶
Overview ¶
Subagent tutorial: spawn child tasks and collect their results. Provider abstracts startup; built-in acp and fork-copy backends are stubs. ForkLineage records parent/child sessions for causal attribution. Handle.Drain waits for completion; Dispose releases resources and cascades cancellation. Runtime.Spawn selects a backend and registers the handle; DisposeOwner releases all children of a parent. The example covers spawning, lineage, draining, cascading cleanup, and stable errors for unknown backends. Run: go run ./examples/subagent. See pkg/subagent/subagent.go.
Click to show internal directories.
Click to hide internal directories.