Documentation
¶
Index ¶
- func BuildConversation(events []Event) []llm.Message
- func PruneExpired(root string, cutoff time.Time) error
- type AssistantTurnPayload
- type BashPayload
- type CompactionAppliedPayload
- type DiffPayload
- type Event
- type EventKind
- type LoadedSession
- type MessagePayload
- type Session
- type SessionStartedPayload
- type Store
- type Summary
- type ToolEndPayload
- type ToolStartPayload
- type TranscriptItem
- type TranscriptItemKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildConversation ¶
Types ¶
type AssistantTurnPayload ¶
type AssistantTurnPayload struct {
Transcript []TranscriptItem `json:"transcript,omitempty"`
Message string `json:"message,omitempty"`
TurnMemory *llm.TurnMemory `json:"turn_memory,omitempty"`
Interrupted bool `json:"interrupted,omitempty"`
Error string `json:"error,omitempty"`
}
type BashPayload ¶
type CompactionAppliedPayload ¶
type CompactionAppliedPayload struct {
Status string `json:"status"`
Transcript []TranscriptItem `json:"transcript,omitempty"`
Messages []llm.Message `json:"messages"`
}
type DiffPayload ¶
type DiffPayload struct {
Lines []tools.EditDiffLine `json:"lines"`
}
type Event ¶
type Event struct {
Seq uint64 `json:"seq"`
Kind EventKind `json:"kind"`
SessionStarted *SessionStartedPayload `json:"session_started,omitempty"`
UserMessage *MessagePayload `json:"user_message,omitempty"`
AssistantTurn *AssistantTurnPayload `json:"assistant_turn,omitempty"`
CompactionApplied *CompactionAppliedPayload `json:"compaction_applied,omitempty"`
}
type LoadedSession ¶
type MessagePayload ¶
type MessagePayload struct {
Content string `json:"content"`
}
type SessionStartedPayload ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AppendBatch ¶
AppendBatch atomically persists events as one JSONL transcript update.
type ToolEndPayload ¶
type ToolStartPayload ¶
type TranscriptItem ¶
type TranscriptItem struct {
Kind TranscriptItemKind `json:"kind"`
Content string `json:"content,omitempty"`
ToolStart *ToolStartPayload `json:"tool_start,omitempty"`
ToolEnd *ToolEndPayload `json:"tool_end,omitempty"`
Bash *BashPayload `json:"bash,omitempty"`
Diff *DiffPayload `json:"diff,omitempty"`
}
type TranscriptItemKind ¶
type TranscriptItemKind string
const ( TranscriptItemText TranscriptItemKind = "text" TranscriptItemReasoning TranscriptItemKind = "reasoning" TranscriptItemToolStart TranscriptItemKind = "tool_start" TranscriptItemToolEnd TranscriptItemKind = "tool_end" TranscriptItemBash TranscriptItemKind = "bash" TranscriptItemDiff TranscriptItemKind = "diff" )
Click to show internal directories.
Click to hide internal directories.