Documentation
¶
Index ¶
- Constants
- type AssistantResponse
- type Recorder
- func (r *Recorder) ArchiveTranscript(sessionID, transcriptPath string) error
- func (r *Recorder) Close() error
- func (r *Recorder) RecordAssistantAndFinalize(event AssistantResponse) error
- func (r *Recorder) RecordToolUse(event ToolUse) error
- func (r *Recorder) RecordUserPrompt(event UserPrompt) error
- func (r *Recorder) UpsertSession(meta SessionMetadata) error
- type SessionMetadata
- type ToolUse
- type UserPrompt
Constants ¶
View Source
const ( OriginClaudeCode = "claude_code" OriginCodexCLI = "codex_cli" OriginOpenCode = "opencode" OriginPi = "pi" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssistantResponse ¶
type AssistantResponse struct {
SessionMetadata
TurnID string
LastAssistantMessage string
}
type Recorder ¶
func (*Recorder) ArchiveTranscript ¶
func (*Recorder) RecordAssistantAndFinalize ¶
func (r *Recorder) RecordAssistantAndFinalize(event AssistantResponse) error
func (*Recorder) RecordToolUse ¶
func (*Recorder) RecordUserPrompt ¶
func (r *Recorder) RecordUserPrompt(event UserPrompt) error
func (*Recorder) UpsertSession ¶
func (r *Recorder) UpsertSession(meta SessionMetadata) error
type SessionMetadata ¶
type ToolUse ¶
type ToolUse struct {
SessionMetadata
TurnID string
ToolName string
ToolUseID string
ToolInput json.RawMessage
ToolResponse json.RawMessage
}
type UserPrompt ¶
type UserPrompt struct {
SessionMetadata
TurnID string
Prompt string
}
Click to show internal directories.
Click to hide internal directories.