Skip to main content

Module spawn

Module spawn 

Source
Expand description

Delegation input and history forking. Parent system prompts, tool traces, and intermediate assistant messages never become child conversational authority.

Structs§

AgentSpawnRequest
Model-facing intent only. Parent/owner/root identities and delegation authorization are supplied separately by the trusted host, never this input.
RemoteAgentSpawnRequest
Host-adapter intent for an endpoint already declared by the parent artifact. The trusted host resolves its agent identity and credential binding.

Enums§

HistoryForkMode
Explicit opt-in to parent dialogue. Even Full excludes tool traffic and system context; the child kernel assembles its own artifact and policy.

Functions§

fork_history
Fork user-delimited turns, retaining each user message and only the final assistant response. LastTurns(2) counts turns, not two individual messages. A current user turn without a final response is retained as a user turn.