session

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryManager

type InMemoryManager struct {
	// contains filtered or unexported fields
}

InMemoryManager implements SessionManager with in-memory storage

func (*InMemoryManager) CreateSession

func (m *InMemoryManager) CreateSession(workingDir string, persona string) (Session, error)

CreateSession creates a new session with the given working directory and persona

func (*InMemoryManager) GetSession

func (m *InMemoryManager) GetSession() (Session, error)

GetSession retrieves an existing session by ID

type InMemorySession

type InMemorySession struct {
	// contains filtered or unexported fields
}

InMemorySession implements Session with event bus publishing

func (*InMemorySession) GetPersona

func (s *InMemorySession) GetPersona() string

GetPersona returns the session's selected persona

func (*InMemorySession) GetWorkingDirectory

func (s *InMemorySession) GetWorkingDirectory() string

GetWorkingDirectory returns the session's working directory

type Session

type Session interface {
	GetWorkingDirectory() string
	GetPersona() string
}

Session represents a conversation session

func NewSession

func NewSession(workingDir string, persona string, publisher events.Publisher) Session

NewSession creates a new session with working directory, persona, and publisher for broadcasting

type SessionManager

type SessionManager interface {
	CreateSession(workingDir string, persona string) (Session, error)
	GetSession() (Session, error)
}

SessionManager manages multiple sessions

func NewSessionManager

func NewSessionManager(publisher events.Publisher) SessionManager

NewSessionManager creates a new session manager

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL