Documentation
¶
Index ¶
- func ArtifactDir(sessionsDir, id string) (string, error)
- func Delete(sessionsDir, id string) error
- func Fork(sessionsDir, id, newID, title string) error
- func ForkThrough(sessionsDir, id, newID, title, inputID string) error
- func Save(sessionsDir, id string, state harness.State) error
- type Journal
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArtifactDir ¶ added in v0.15.8
ArtifactDir is the durable sidecar directory for state that is not part of conversational history (turn queue, schedules, and subagent registry).
func Fork ¶ added in v0.19.0
Fork copies id's journal, not its sidecar artifacts, into newID; title defaults to "Fork of <source>".
func ForkThrough ¶ added in v0.20.0
ForkThrough forks history up to the next user input after inputID, so the fork ends with that input's turn.
Types ¶
type Journal ¶ added in v0.15.8
type Journal struct {
// contains filtered or unexported fields
}
Journal is the live append boundary for one session. All instances for the same path share a process-local lock, so a final Save and live Agent writes cannot interleave JSON records.
func OpenJournal ¶ added in v0.15.8
func (*Journal) AppendEvents ¶ added in v0.15.8
func (j *Journal) AppendEvents(events []harness.RuntimeEvent) error
Click to show internal directories.
Click to hide internal directories.