with-subagent

command
v2.7.0-dev.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Example: drive a parent agent with a subagent end-to-end with no LLM credentials. Two scripted-mock providers — one for the parent, one for the research subagent — replay JSONL transcripts that capture: parent calls subagent, subagent returns its answer, parent emits a final summary.

Both agents share an eventlog handle; the research subagent's events land in the parent's session row under branch="research" so an audit query against the parent session returns both. We inspect the resulting SQLite database at the end to show the agent_eventlog rows tagged by branch.

go run ./examples/with-subagent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL