Skip to main content

Module session

Module session 

Source
Expand description

§Session Abstraction

High-level session management that encapsulates conversation state, eliminating the need for manual session ID and context passing.

§Design Principles

  1. Hide mechanics: Users shouldn’t know about Tape, Store, SkillsContext unless they want to customize (provide default abstraction layer).
  2. Ownership and state isolation: Agent owns immutable config and tools, Session owns time-varying history and context.
  3. Rust conventions: Use impl Into<String>, builder patterns, friendly errors.

Structs§

Agent
Agent configuration for building sessions.
AgentBuilder
Builder for constructing an Agent with optional components.
AgentResponse
Flattened response type for public API.
Session
A stateful conversation session.