Skip to main content

Module turn

Module turn 

Expand description

Shared turn execution. Single source of truth for spawn-drain-cancel.

Structs§

TurnAttribution
Attribution fields attached to the tracing span for the duration of a turn. All fields appear on every record!() emitted inside the turn.
TurnRefusal
Why a turn’s caller may not run it, as the JSON-RPC error it receives.

Enums§

TurnError
TurnOutcome

Functions§

execute_turn

Type Aliases§

TurnAdmission
Judges a turn’s caller on the Agent guard the turn runs under, after the last wait before the turn, and applies the caller’s tool posture to that Agent. A refusal stops the turn before it touches the Agent.