Skip to main content

Module sansio

Module sansio 

Source
Expand description

Sans-IO state machine for session turns.

TurnMachine owns the generic effect engine. Protocol-specific behavior lives behind ProtocolDriverHandle, which returns declarative DriverActions that the machine applies.

Structs§

ChatContextProjector
CheckpointDelivery
CompletedToolCall
DriverContextView
EffectId
Opaque identifier linking an effect to its response.
ExecutionSurfaceSync
LlmCallError
Error details from a failed LLM call.
PendingToolCall
ProjectorContext
TurnCause
TurnCheckpoint
TurnMachine
Sans-IO state machine for a single session run (multi-turn).
TurnMachineConfig
Configuration for a TurnMachine instance.
UnitTurnProtocol
WaitingExecState
WaitingLlmState

Enums§

CheckpointResumeAction
DriverAction
Effect
An effect the host must fulfil.
LogEvent
Response
A response to a previously emitted effect.

Traits§

ContextProjector
ProtocolDriverHandle
TurnProtocol

Functions§

render_turn_causes_prompt