Documentation
¶
Index ¶
- type AppendOnlyLog
- type ImmutablePrefix
- type ProjectMemory
- type RewriteReason
- type RuntimeState
- type SessionRuntime
- func (r *SessionRuntime) ClearUserInput(sessionID string) error
- func (r *SessionRuntime) Enabled() bool
- func (r *SessionRuntime) LoadMeta(sessionID string) (session.SessionMeta, error)
- func (r *SessionRuntime) LoadTodo(sessionID string) (session.TodoState, error)
- func (r *SessionRuntime) LoadUserInput(sessionID string) (session.UserInputState, error)
- func (r *SessionRuntime) RefreshScratch(sessionID string, scratch *VolatileScratch)
- func (r *SessionRuntime) SaveMeta(sessionID string, st session.SessionMeta) error
- func (r *SessionRuntime) SaveTodo(sessionID string, st session.TodoState) error
- func (r *SessionRuntime) SaveUserInput(sessionID string, st session.UserInputState) error
- type ToolArgsState
- type UserInputGateState
- type VolatileScratch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppendOnlyLog ¶
type AppendOnlyLog struct {
// contains filtered or unexported fields
}
func NewAppendOnlyLog ¶
func NewAppendOnlyLog() *AppendOnlyLog
func (*AppendOnlyLog) Append ¶
func (l *AppendOnlyLog) Append(msg core.Message)
func (*AppendOnlyLog) Entries ¶
func (l *AppendOnlyLog) Entries() []core.Message
func (*AppendOnlyLog) Extend ¶
func (l *AppendOnlyLog) Extend(msgs []core.Message)
func (*AppendOnlyLog) Len ¶
func (l *AppendOnlyLog) Len() int
func (*AppendOnlyLog) RewriteWithReason ¶
func (l *AppendOnlyLog) RewriteWithReason(reason RewriteReason, replacement []core.Message) bool
type ImmutablePrefix ¶
type ImmutablePrefix struct {
// contains filtered or unexported fields
}
func NewImmutablePrefix ¶
func NewImmutablePrefix(systemBlocks []string) *ImmutablePrefix
func (*ImmutablePrefix) Fingerprint ¶
func (p *ImmutablePrefix) Fingerprint() string
func (*ImmutablePrefix) Refresh ¶
func (p *ImmutablePrefix) Refresh(systemBlocks []string)
func (*ImmutablePrefix) ToMessages ¶
func (p *ImmutablePrefix) ToMessages() []core.Message
type ProjectMemory ¶
func ReadProjectMemory ¶
func ReadProjectMemory(workspaceRoot string, fileOrder []string, maxChars int) (ProjectMemory, bool)
type RewriteReason ¶
type RewriteReason string
const ( RewriteReasonCompact RewriteReason = "compact" RewriteReasonRecovery RewriteReason = "recovery" )
type RuntimeState ¶
type RuntimeState struct {
Prefix *ImmutablePrefix
Log *AppendOnlyLog
Scratch *VolatileScratch
}
func HydrateRuntime ¶
func HydrateRuntime(prefix *ImmutablePrefix, history []core.Message) *RuntimeState
func NewRuntimeState ¶
func NewRuntimeState(prefix *ImmutablePrefix) *RuntimeState
func (*RuntimeState) BuildProviderHistory ¶
func (r *RuntimeState) BuildProviderHistory() []core.Message
type SessionRuntime ¶
type SessionRuntime struct {
// contains filtered or unexported fields
}
func NewSessionRuntime ¶
func NewSessionRuntime(sessionsDir string) *SessionRuntime
func (*SessionRuntime) ClearUserInput ¶
func (r *SessionRuntime) ClearUserInput(sessionID string) error
func (*SessionRuntime) Enabled ¶
func (r *SessionRuntime) Enabled() bool
func (*SessionRuntime) LoadMeta ¶
func (r *SessionRuntime) LoadMeta(sessionID string) (session.SessionMeta, error)
func (*SessionRuntime) LoadTodo ¶
func (r *SessionRuntime) LoadTodo(sessionID string) (session.TodoState, error)
func (*SessionRuntime) LoadUserInput ¶
func (r *SessionRuntime) LoadUserInput(sessionID string) (session.UserInputState, error)
func (*SessionRuntime) RefreshScratch ¶
func (r *SessionRuntime) RefreshScratch(sessionID string, scratch *VolatileScratch)
func (*SessionRuntime) SaveMeta ¶
func (r *SessionRuntime) SaveMeta(sessionID string, st session.SessionMeta) error
func (*SessionRuntime) SaveTodo ¶
func (r *SessionRuntime) SaveTodo(sessionID string, st session.TodoState) error
func (*SessionRuntime) SaveUserInput ¶
func (r *SessionRuntime) SaveUserInput(sessionID string, st session.UserInputState) error
type ToolArgsState ¶
type UserInputGateState ¶
type UserInputGateState struct {
State session.UserInputState
Err string
}
type VolatileScratch ¶
type VolatileScratch struct {
Reasoning string
ToolArgs map[int]ToolArgsState
Warnings []string
UserInput UserInputGateState
}
func NewVolatileScratch ¶
func NewVolatileScratch() *VolatileScratch
func (*VolatileScratch) ResetSession ¶
func (s *VolatileScratch) ResetSession()
func (*VolatileScratch) ResetTurn ¶
func (s *VolatileScratch) ResetTurn()
func (*VolatileScratch) UpdateToolArgs ¶
func (s *VolatileScratch) UpdateToolArgs(index int, name string, argsChars int, readyCount int)
Click to show internal directories.
Click to hide internal directories.