Expand description
§Session Abstraction
High-level session management that encapsulates conversation state, eliminating the need for manual session ID and context passing.
§Design Principles
- Hide mechanics: Users shouldn’t know about
Tape,Store,SkillsContextunless they want to customize (provide default abstraction layer). - Ownership and state isolation:
Agentowns immutable config and tools,Sessionowns time-varying history and context. - Rust conventions: Use
impl Into<String>, builder patterns, friendly errors.
Structs§
- Agent
- Agent configuration for building sessions.
- Agent
Builder - Builder for constructing an
Agentwith optional components. - Agent
Response - Flattened response type for public API.
- Session
- A stateful conversation session.