Expand description
Application kit: DaemonSession, pool, TurnRunner, and helpers.
Structs§
- Connection
Pool - Maps chat sessions to daemon loops.
- Daemon
Session - Dual-socket session: stream + lazy RPC sidecar.
- Daemon
Session Options - Options for constructing a DaemonSession.
- ErrQuery
Busy - Session already has an in-flight query.
- Event
Classifier - Classifies turn chunks for product backends.
- InMemory
Session Store - Process-local store.
- Input
Opts - Optional input knobs for TurnRunner.
- Pool
Config - Pool configuration.
- Pool
Stats - Pool stats snapshot.
- Pooled
Conn - A pooled connection bound to a session.
- Query
Gate - Single-flight gate keyed by session id.
- Send
Turn Options - Options for
send_turn. - Session
Record - Persisted session record.
- Turn
Boundary - Applies DaemonSession end rules to pool frames.
- Turn
Chunk - One streamed turn chunk.
- Turn
Config - Turn runner configuration.
- Turn
Lifecycle Gate - Per-turn progress flags (DaemonSession parity; not shared across chats).
- Turn
Runner - Executes a turn against a pooled connection.
Enums§
- Timeout
Policy - Timeout policy for idle / query / stream-close.
Constants§
- TURN_
END_ IDLE - Completion event for gated
status=idle. - TURN_
END_ STOPPED - Completion event for
status=stoppedafter running. - TURN_
END_ STREAM_ END - Completion event for turn-scoped
soothe.stream.end.
Traits§
- Session
Store - Session ↔ loop persistence.
Functions§
- input_
message_ for_ loop - Helper to build flat loop_input dict (coerced by callers to notification).
- is_
daemon_ turn_ end_ event - True for TurnBoundary completion_event values (not phase deliverables).