Versions in this module Expand all Collapse all v2 v2.1.1 Oct 6, 2026 v2.1.0 Oct 6, 2026 Changes in this version + const ScopeVersionV1 + func BuildMainSessionKey(agentID string) string + func BuildOpaqueSessionKey(alias string) string + func BuildSessionKey(scope SessionScope) string + func CanonicalScopeSignature(scope SessionScope) string + func CanonicalSessionIdentityID(channel, rawID string, identityLinks map[string][]string) string + func CommitSummary(store SessionStore, key string, summarized []providers.Message, summary string) bool + func IsOpaqueSessionKey(key string) bool + func ResolveAgentID(store any, sessionKey string) string + type Allocation struct + Scope SessionScope + SessionKey string + func AllocateRouteSession(input AllocationInput) Allocation + type AllocationInput struct + AgentID string + Context bus.InboundContext + SessionPolicy routing.SessionPolicy + type JSONLBackend struct + func NewJSONLBackend(store memory.Store) *JSONLBackend + func (b *JSONLBackend) AddFullMessage(sessionKey string, msg providers.Message) + func (b *JSONLBackend) AddMessage(sessionKey, role, content string) + func (b *JSONLBackend) Close() error + func (b *JSONLBackend) CommitSummary(key string, summarized []providers.Message, summary string) bool + func (b *JSONLBackend) EnsureSessionMetadata(sessionKey string, scope *SessionScope) + func (b *JSONLBackend) GetHistory(key string) []providers.Message + func (b *JSONLBackend) GetSessionScope(sessionKey string) *SessionScope + func (b *JSONLBackend) GetSummary(key string) string + func (b *JSONLBackend) ListSessions() []string + func (b *JSONLBackend) Save(key string) error + func (b *JSONLBackend) SetHistory(key string, history []providers.Message) + func (b *JSONLBackend) SetSummary(key, summary string) + func (b *JSONLBackend) TruncateHistory(key string, keepLast int) + type MetadataAwareSessionStore interface + EnsureSessionMetadata func(sessionKey string, scope *SessionScope) + GetSessionScope func(sessionKey string) *SessionScope + type SessionScope struct + Account string + AgentID string + Channel string + Dimensions []string + Values map[string]string + Version int + func CloneScope(scope *SessionScope) *SessionScope + type SessionStore interface + AddFullMessage func(sessionKey string, msg providers.Message) + AddMessage func(sessionKey, role, content string) + Close func() error + GetHistory func(key string) []providers.Message + GetSummary func(key string) string + ListSessions func() []string + Save func(key string) error + SetHistory func(key string, history []providers.Message) + SetSummary func(key, summary string) + TruncateHistory func(key string, keepLast int) + type SummaryCommitter interface + CommitSummary func(key string, summarized []providers.Message, summary string) bool Other modules containing this package github.com/xibodev/compa