Expand description
Governed model-tool boundary for the trusted thread host. This module owns argument/identity checks and read-only waits, not model execution. A host implementation is mandatory; there is no fake or no-op execution fallback.
Structs§
- Agent
Control Scope - Immutable identity/policy supplied to the host by the governed tool boundary. No deserializer or mutation methods are exposed.
- Agent
Interrupt Receipt - Cancellation acknowledgment is distinct from a terminal thread result.
- Agent
Message Receipt - Typed delivery acknowledgment without echoing message content into history.
- Agent
Summary - Safe model-facing listing. Prompts, history, credentials, and result bodies are omitted; wait results carry only the separately requested terminal result.
- Agent
Tool Context - One live parent turn’s tool authority. Construct a fresh registry for each context; never reuse equivalent descriptors with another parent’s handlers.
- Agent
Turn Outcome - The run ID identifies which observed turn produced this result. Watches are latest-state subscriptions, not queries for earlier resumed turns.
- Root
Delegation Grant - A user grant minted by the verified root host, never decoded from tool args or inferred from a child’s text. Revocation denies subsequent spawn calls.
- Send
Agent Message Request - Body-only model intent. Sender identity and sequence are assigned by the host.
- Wait
Agents Request - Wait for any observed terminal turn. Zero performs a non-blocking snapshot.
- Wait
Agents Result - Timeout leaves unfinished children running. It never invents completion.
Enums§
- Agent
Control Error - Model-facing failures omit raw arguments, child prompts, and backend details.
Constants§
- AGENT_
TOOL_ NAMES - Names reserved for parent-turn-bound agent controls.
Traits§
- Agent
Thread Host - Mandatory trusted-host operations shared by the native tools and adapters. Implementations must recheck live authority at the mutation boundary, persist before publishing, intersect child policy, enforce tree/root budgets, retain exact host bindings, and route all approvals to the root. Mutation lifetimes must not become untracked merely because a tool caller drops its future.