Expand description
Multi-turn session helper over TurnRuntime.
§Conversation state model (canonical)
- Turn-local buffer:
VecConversationStateimplementsConversationStatefor the synchronous sample/tool loop. - Session source of truth (optional):
ChatStateHandleis the multi-turn durable surface. PreferSession::run_turn_on_handlewhen you need actor isolation, usage ledger, or checkpointing viamachi_state::ChatPersistence.
Do not treat the two as parallel “equal” product APIs: handle is the
session store; VecConversationState is the turn engine buffer.
Structs§
- Session
- Thin multi-turn orchestrator (one agent, persistent conversation state).