Documentation
¶
Index ¶
- Variables
- type Agent
- type Session
- func (s *Session) AppendAssistantTurn(transcript []session.TranscriptItem, message agentcore.Message, ...) error
- func (s *Session) AppendAutoCompaction(checkpointTranscript []session.TranscriptItem, checkpoint agentcore.Message, ...) error
- func (s *Session) AppendCompaction(transcript []session.TranscriptItem, messages []agentcore.Message, ...) error
- func (s *Session) AppendUserMessage(content string) error
- func (s *Session) CurrentID() string
- func (s *Session) List() ([]session.Summary, error)
- func (s *Session) Load(summary session.Summary) (*session.LoadedSession, error)
- func (s *Session) ObserveToolCall(call *agentcore.ToolCall) bool
- func (s *Session) Reset()
- func (s *Session) Resume(loaded *session.LoadedSession)
- func (s *Session) SetAgent(agent Agent)
- func (s *Session) StartTurn(ctx context.Context, input string) (*Turn, error)
- func (s *Session) Todos() Todos
- type Todos
- type Turn
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTurnActive = errors.New("a turn is already active")
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSessionWithoutStore ¶
func (*Session) AppendAssistantTurn ¶
func (*Session) AppendAutoCompaction ¶
func (*Session) AppendCompaction ¶
func (*Session) AppendUserMessage ¶
func (*Session) Resume ¶
func (s *Session) Resume(loaded *session.LoadedSession)
type Todos ¶
func TodosFromEvents ¶
type Turn ¶
type Turn struct {
Events <-chan agentcore.StreamEvent
// contains filtered or unexported fields
}
Turn is one prompt submission. Close releases the session's active-turn slot and cancels the turn; it is safe to call more than once.
func (*Turn) ConfigureMemory ¶
func (*Turn) Memory ¶
func (t *Turn) Memory() *agentcore.TurnMemory
func (*Turn) RecordToolCall ¶
func (*Turn) ResetMemory ¶
func (t *Turn) ResetMemory()
Click to show internal directories.
Click to hide internal directories.