Documentation
¶
Index ¶
- type ArchiveEventRangeParams
- type ConversationRewindReceipt
- type ConversationRewindState
- type CountTranscriptEntriesCrossingCutParams
- type CountTranscriptMessageIDConflictsParams
- type DBTX
- type DeleteTranscriptEntriesInRangeParams
- type DeleteTranscriptToolRoutesInRangeParams
- type Event
- type GetConversationRewindStateRow
- type GetConversationRewindTargetRow
- type GetEventByIDRow
- type GetLatestAssistantTranscriptIdentityParams
- type GetLatestAssistantTranscriptIdentityRow
- type GetTranscriptEntryIdentityRow
- type GetTranscriptProjectionStateRow
- type GetTranscriptToolEntryIdentityRow
- type HookRun
- type InsertConversationRewindReceiptParams
- type InsertEventParams
- type InsertHookRunParams
- type ListEventsForTranscriptEntryRow
- type ListLatestTranscriptEntriesRow
- type ListTranscriptEntriesBeforeParams
- type ListTranscriptEntriesBeforeRow
- type ListTranscriptOutlineCandidatesParams
- type ListTranscriptOutlineCandidatesRow
- type ListTranscriptSearchCandidatesParams
- type ListTranscriptSearchCandidatesRow
- type ListTranscriptTextEventsForUpgradeParams
- type ListTranscriptTextEventsForUpgradeRow
- type Queries
- func (q *Queries) AdvanceTranscriptProjectionGeneration(ctx context.Context) error
- func (q *Queries) ArchiveEventRange(ctx context.Context, arg ArchiveEventRangeParams) (int64, error)
- func (q *Queries) ClearConversationRewindReceipts(ctx context.Context) error
- func (q *Queries) ClearConversationRewindState(ctx context.Context) error
- func (q *Queries) ClearEvents(ctx context.Context) error
- func (q *Queries) ClearHookRuns(ctx context.Context) error
- func (q *Queries) ClearTokenUsage(ctx context.Context) error
- func (q *Queries) ClearTranscriptEntries(ctx context.Context) error
- func (q *Queries) ClearTranscriptToolRoutes(ctx context.Context) error
- func (q *Queries) CountArchivedTranscriptEventsBeforeSequence(ctx context.Context, beforeSequence int64) (int64, error)
- func (q *Queries) CountTranscriptEntriesCrossingCut(ctx context.Context, arg CountTranscriptEntriesCrossingCutParams) (int64, error)
- func (q *Queries) CountTranscriptMessageIDConflicts(ctx context.Context, arg CountTranscriptMessageIDConflictsParams) (int64, error)
- func (q *Queries) DeleteTranscriptEntriesInRange(ctx context.Context, arg DeleteTranscriptEntriesInRangeParams) error
- func (q *Queries) DeleteTranscriptToolRoutesInRange(ctx context.Context, arg DeleteTranscriptToolRoutesInRangeParams) error
- func (q *Queries) GetConversationRewindReceipt(ctx context.Context, idempotencyKey string) (ConversationRewindReceipt, error)
- func (q *Queries) GetConversationRewindState(ctx context.Context) (GetConversationRewindStateRow, error)
- func (q *Queries) GetConversationRewindTarget(ctx context.Context, messageID sql.NullString) (GetConversationRewindTargetRow, error)
- func (q *Queries) GetEventByID(ctx context.Context, id string) (GetEventByIDRow, error)
- func (q *Queries) GetLatestAssistantTranscriptIdentity(ctx context.Context, arg GetLatestAssistantTranscriptIdentityParams) (GetLatestAssistantTranscriptIdentityRow, error)
- func (q *Queries) GetTranscriptEntryIdentity(ctx context.Context, entryKey string) (GetTranscriptEntryIdentityRow, error)
- func (q *Queries) GetTranscriptProjectionState(ctx context.Context) (GetTranscriptProjectionStateRow, error)
- func (q *Queries) GetTranscriptToolEntryIdentity(ctx context.Context, toolKey string) (GetTranscriptToolEntryIdentityRow, error)
- func (q *Queries) InitializeTranscriptProjectionState(ctx context.Context, projectionVersion int64) error
- func (q *Queries) InsertConversationRewindReceipt(ctx context.Context, arg InsertConversationRewindReceiptParams) error
- func (q *Queries) InsertEvent(ctx context.Context, arg InsertEventParams) error
- func (q *Queries) InsertHookRun(ctx context.Context, arg InsertHookRunParams) error
- func (q *Queries) ListEventsForTranscriptEntry(ctx context.Context, transcriptEntryKey string) ([]ListEventsForTranscriptEntryRow, error)
- func (q *Queries) ListLatestTranscriptEntries(ctx context.Context, rowLimit int64) ([]ListLatestTranscriptEntriesRow, error)
- func (q *Queries) ListTokenUsage(ctx context.Context) ([]TokenUsage, error)
- func (q *Queries) ListTranscriptEntriesBefore(ctx context.Context, arg ListTranscriptEntriesBeforeParams) ([]ListTranscriptEntriesBeforeRow, error)
- func (q *Queries) ListTranscriptOutlineCandidates(ctx context.Context, arg ListTranscriptOutlineCandidatesParams) ([]ListTranscriptOutlineCandidatesRow, error)
- func (q *Queries) ListTranscriptSearchCandidates(ctx context.Context, arg ListTranscriptSearchCandidatesParams) ([]ListTranscriptSearchCandidatesRow, error)
- func (q *Queries) ListTranscriptTextEventsForUpgrade(ctx context.Context, arg ListTranscriptTextEventsForUpgradeParams) ([]ListTranscriptTextEventsForUpgradeRow, error)
- func (q *Queries) MaxActiveEventSequence(ctx context.Context) (int64, error)
- func (q *Queries) MaxEventSequence(ctx context.Context) (int64, error)
- func (q *Queries) MinActiveEventSequence(ctx context.Context) (int64, error)
- func (q *Queries) UpdateTranscriptProjectionState(ctx context.Context, arg UpdateTranscriptProjectionStateParams) error
- func (q *Queries) UpsertConversationRewindState(ctx context.Context, arg UpsertConversationRewindStateParams) error
- func (q *Queries) UpsertTokenUsage(ctx context.Context, arg UpsertTokenUsageParams) error
- func (q *Queries) UpsertTranscriptEntry(ctx context.Context, arg UpsertTranscriptEntryParams) error
- func (q *Queries) UpsertTranscriptToolRoute(ctx context.Context, arg UpsertTranscriptToolRouteParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type SessionDbIdentity
- type SessionDbOwner
- type TokenUsage
- type TranscriptEntry
- type TranscriptProjectionState
- type TranscriptToolRoute
- type UpdateTranscriptProjectionStateParams
- type UpsertConversationRewindStateParams
- type UpsertTokenUsageParams
- type UpsertTranscriptEntryParams
- type UpsertTranscriptToolRouteParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveEventRangeParams ¶
type ConversationRewindReceipt ¶
type ConversationRewindReceipt struct {
IdempotencyKey string `json:"idempotency_key"`
RequestHash string `json:"request_hash"`
TargetMessageID string `json:"target_message_id"`
ArchivedFromSequence int64 `json:"archived_from_sequence"`
ArchivedToSequence int64 `json:"archived_to_sequence"`
ArchivedEventCount int64 `json:"archived_event_count"`
Generation int64 `json:"generation"`
MaxSequence int64 `json:"max_sequence"`
TranscriptEpoch int64 `json:"transcript_epoch"`
DraftText string `json:"draft_text"`
CreatedAt string `json:"created_at"`
}
type ConversationRewindState ¶
type Event ¶
type Event struct {
ID string `json:"id"`
Sequence int64 `json:"sequence"`
TurnID string `json:"turn_id"`
Type string `json:"type"`
AgentName string `json:"agent_name"`
Content string `json:"content"`
Archived int64 `json:"archived"`
Timestamp string `json:"timestamp"`
TranscriptEntryKey string `json:"transcript_entry_key"`
}
type GetConversationRewindTargetRow ¶
type GetConversationRewindTargetRow struct {
Kind string `json:"kind"`
MessageID sql.NullString `json:"message_id"`
StartSequence int64 `json:"start_sequence"`
Complete int64 `json:"complete"`
MessageJson sql.NullString `json:"message_json"`
}
type GetEventByIDRow ¶
type GetLatestAssistantTranscriptIdentityRow ¶
type GetLatestAssistantTranscriptIdentityRow struct {
EntryKey string `json:"entry_key"`
Kind string `json:"kind"`
LogicalID string `json:"logical_id"`
TurnID string `json:"turn_id"`
BaseMessageID string `json:"base_message_id"`
MessageID string `json:"message_id"`
StartSequence int64 `json:"start_sequence"`
UpdatedSequence int64 `json:"updated_sequence"`
Complete int64 `json:"complete"`
}
type GetTranscriptEntryIdentityRow ¶
type GetTranscriptEntryIdentityRow struct {
EntryKey string `json:"entry_key"`
Kind string `json:"kind"`
LogicalID string `json:"logical_id"`
TurnID string `json:"turn_id"`
BaseMessageID string `json:"base_message_id"`
MessageID string `json:"message_id"`
StartSequence int64 `json:"start_sequence"`
UpdatedSequence int64 `json:"updated_sequence"`
Complete int64 `json:"complete"`
}
type GetTranscriptToolEntryIdentityRow ¶
type GetTranscriptToolEntryIdentityRow struct {
EntryKey string `json:"entry_key"`
Kind string `json:"kind"`
LogicalID string `json:"logical_id"`
TurnID string `json:"turn_id"`
BaseMessageID string `json:"base_message_id"`
MessageID string `json:"message_id"`
StartSequence int64 `json:"start_sequence"`
UpdatedSequence int64 `json:"updated_sequence"`
Complete int64 `json:"complete"`
}
type HookRun ¶
type HookRun struct {
ID string `json:"id"`
HookName string `json:"hook_name"`
Event string `json:"event"`
Source string `json:"source"`
Mode string `json:"mode"`
DurationNs int64 `json:"duration_ns"`
Outcome string `json:"outcome"`
DispatchDepth int64 `json:"dispatch_depth"`
PatchApplied sql.NullString `json:"patch_applied"`
Error sql.NullString `json:"error"`
Required int64 `json:"required"`
RecordedAt string `json:"recorded_at"`
}
type InsertConversationRewindReceiptParams ¶
type InsertConversationRewindReceiptParams struct {
IdempotencyKey string `json:"idempotency_key"`
RequestHash string `json:"request_hash"`
TargetMessageID string `json:"target_message_id"`
ArchivedFromSequence int64 `json:"archived_from_sequence"`
ArchivedToSequence int64 `json:"archived_to_sequence"`
ArchivedEventCount int64 `json:"archived_event_count"`
Generation int64 `json:"generation"`
MaxSequence int64 `json:"max_sequence"`
TranscriptEpoch int64 `json:"transcript_epoch"`
DraftText string `json:"draft_text"`
CreatedAt string `json:"created_at"`
}
type InsertEventParams ¶
type InsertEventParams struct {
ID string `json:"id"`
Sequence int64 `json:"sequence"`
TurnID string `json:"turn_id"`
Type string `json:"type"`
AgentName string `json:"agent_name"`
Content string `json:"content"`
Archived int64 `json:"archived"`
Timestamp string `json:"timestamp"`
TranscriptEntryKey string `json:"transcript_entry_key"`
}
type InsertHookRunParams ¶
type InsertHookRunParams struct {
ID string `json:"id"`
HookName string `json:"hook_name"`
Event string `json:"event"`
Source string `json:"source"`
Mode string `json:"mode"`
DurationNs int64 `json:"duration_ns"`
Outcome string `json:"outcome"`
DispatchDepth int64 `json:"dispatch_depth"`
PatchApplied sql.NullString `json:"patch_applied"`
Error sql.NullString `json:"error"`
Required int64 `json:"required"`
RecordedAt string `json:"recorded_at"`
}
type ListLatestTranscriptEntriesRow ¶
type ListLatestTranscriptEntriesRow struct {
MessageJson sql.NullString `json:"message_json"`
StartSequence int64 `json:"start_sequence"`
UpdatedSequence int64 `json:"updated_sequence"`
EventType string `json:"event_type"`
MarkerJson sql.NullString `json:"marker_json"`
}
type ListTranscriptEntriesBeforeRow ¶
type ListTranscriptEntriesBeforeRow struct {
MessageJson sql.NullString `json:"message_json"`
StartSequence int64 `json:"start_sequence"`
UpdatedSequence int64 `json:"updated_sequence"`
EventType string `json:"event_type"`
MarkerJson sql.NullString `json:"marker_json"`
}
type ListTranscriptOutlineCandidatesRow ¶
type ListTranscriptOutlineCandidatesRow struct {
MessageJson sql.NullString `json:"message_json"`
StartSequence int64 `json:"start_sequence"`
TurnID string `json:"turn_id"`
ReplyJson sql.NullString `json:"reply_json"`
At string `json:"at"`
}
type ListTranscriptSearchCandidatesRow ¶
type ListTranscriptSearchCandidatesRow struct {
MessageJson sql.NullString `json:"message_json"`
StartSequence int64 `json:"start_sequence"`
TurnID string `json:"turn_id"`
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AdvanceTranscriptProjectionGeneration ¶
func (*Queries) ArchiveEventRange ¶
func (*Queries) ClearConversationRewindReceipts ¶
func (*Queries) ClearConversationRewindState ¶
func (*Queries) ClearTranscriptEntries ¶
func (*Queries) ClearTranscriptToolRoutes ¶
func (*Queries) CountArchivedTranscriptEventsBeforeSequence ¶
func (*Queries) CountTranscriptEntriesCrossingCut ¶
func (*Queries) CountTranscriptMessageIDConflicts ¶
func (*Queries) DeleteTranscriptEntriesInRange ¶
func (q *Queries) DeleteTranscriptEntriesInRange(ctx context.Context, arg DeleteTranscriptEntriesInRangeParams) error
func (*Queries) DeleteTranscriptToolRoutesInRange ¶
func (q *Queries) DeleteTranscriptToolRoutesInRange(ctx context.Context, arg DeleteTranscriptToolRoutesInRangeParams) error
func (*Queries) GetConversationRewindReceipt ¶
func (*Queries) GetConversationRewindState ¶
func (q *Queries) GetConversationRewindState(ctx context.Context) (GetConversationRewindStateRow, error)
func (*Queries) GetConversationRewindTarget ¶
func (q *Queries) GetConversationRewindTarget(ctx context.Context, messageID sql.NullString) (GetConversationRewindTargetRow, error)
func (*Queries) GetEventByID ¶
func (*Queries) GetLatestAssistantTranscriptIdentity ¶
func (q *Queries) GetLatestAssistantTranscriptIdentity(ctx context.Context, arg GetLatestAssistantTranscriptIdentityParams) (GetLatestAssistantTranscriptIdentityRow, error)
func (*Queries) GetTranscriptEntryIdentity ¶
func (*Queries) GetTranscriptProjectionState ¶
func (q *Queries) GetTranscriptProjectionState(ctx context.Context) (GetTranscriptProjectionStateRow, error)
func (*Queries) GetTranscriptToolEntryIdentity ¶
func (*Queries) InitializeTranscriptProjectionState ¶
func (*Queries) InsertConversationRewindReceipt ¶
func (q *Queries) InsertConversationRewindReceipt(ctx context.Context, arg InsertConversationRewindReceiptParams) error
func (*Queries) InsertEvent ¶
func (q *Queries) InsertEvent(ctx context.Context, arg InsertEventParams) error
func (*Queries) InsertHookRun ¶
func (q *Queries) InsertHookRun(ctx context.Context, arg InsertHookRunParams) error
func (*Queries) ListEventsForTranscriptEntry ¶
func (*Queries) ListLatestTranscriptEntries ¶
func (*Queries) ListTokenUsage ¶
func (q *Queries) ListTokenUsage(ctx context.Context) ([]TokenUsage, error)
func (*Queries) ListTranscriptEntriesBefore ¶
func (q *Queries) ListTranscriptEntriesBefore(ctx context.Context, arg ListTranscriptEntriesBeforeParams) ([]ListTranscriptEntriesBeforeRow, error)
func (*Queries) ListTranscriptOutlineCandidates ¶
func (q *Queries) ListTranscriptOutlineCandidates(ctx context.Context, arg ListTranscriptOutlineCandidatesParams) ([]ListTranscriptOutlineCandidatesRow, error)
func (*Queries) ListTranscriptSearchCandidates ¶
func (q *Queries) ListTranscriptSearchCandidates(ctx context.Context, arg ListTranscriptSearchCandidatesParams) ([]ListTranscriptSearchCandidatesRow, error)
func (*Queries) ListTranscriptTextEventsForUpgrade ¶
func (q *Queries) ListTranscriptTextEventsForUpgrade(ctx context.Context, arg ListTranscriptTextEventsForUpgradeParams) ([]ListTranscriptTextEventsForUpgradeRow, error)
func (*Queries) MaxActiveEventSequence ¶
func (*Queries) MaxEventSequence ¶
func (*Queries) MinActiveEventSequence ¶
func (*Queries) UpdateTranscriptProjectionState ¶
func (q *Queries) UpdateTranscriptProjectionState(ctx context.Context, arg UpdateTranscriptProjectionStateParams) error
func (*Queries) UpsertConversationRewindState ¶
func (q *Queries) UpsertConversationRewindState(ctx context.Context, arg UpsertConversationRewindStateParams) error
func (*Queries) UpsertTokenUsage ¶
func (q *Queries) UpsertTokenUsage(ctx context.Context, arg UpsertTokenUsageParams) error
func (*Queries) UpsertTranscriptEntry ¶
func (q *Queries) UpsertTranscriptEntry(ctx context.Context, arg UpsertTranscriptEntryParams) error
func (*Queries) UpsertTranscriptToolRoute ¶
func (q *Queries) UpsertTranscriptToolRoute(ctx context.Context, arg UpsertTranscriptToolRouteParams) error
type SessionDbIdentity ¶
type SessionDbOwner ¶
type TokenUsage ¶
type TokenUsage struct {
TurnID string `json:"turn_id"`
InputTokens sql.NullInt64 `json:"input_tokens"`
OutputTokens sql.NullInt64 `json:"output_tokens"`
TotalTokens sql.NullInt64 `json:"total_tokens"`
ThoughtTokens sql.NullInt64 `json:"thought_tokens"`
CacheReadTokens sql.NullInt64 `json:"cache_read_tokens"`
CacheWriteTokens sql.NullInt64 `json:"cache_write_tokens"`
ContextUsed sql.NullInt64 `json:"context_used"`
ContextSize sql.NullInt64 `json:"context_size"`
CostAmount sql.NullFloat64 `json:"cost_amount"`
CostCurrency sql.NullString `json:"cost_currency"`
Timestamp string `json:"timestamp"`
}
type TranscriptEntry ¶
type TranscriptEntry struct {
EntryKey string `json:"entry_key"`
Kind string `json:"kind"`
LogicalID string `json:"logical_id"`
TurnID string `json:"turn_id"`
BaseMessageID string `json:"base_message_id"`
MessageID sql.NullString `json:"message_id"`
StartSequence int64 `json:"start_sequence"`
UpdatedSequence int64 `json:"updated_sequence"`
Complete int64 `json:"complete"`
MessageJson sql.NullString `json:"message_json"`
EventType string `json:"event_type"`
MarkerJson sql.NullString `json:"marker_json"`
}
type TranscriptProjectionState ¶
type TranscriptProjectionState struct {
Singleton int64 `json:"singleton"`
ProjectionVersion int64 `json:"projection_version"`
Generation int64 `json:"generation"`
ActiveEntryKey sql.NullString `json:"active_entry_key"`
}
type TranscriptToolRoute ¶
type UpsertTokenUsageParams ¶
type UpsertTokenUsageParams struct {
TurnID string `json:"turn_id"`
InputTokens sql.NullInt64 `json:"input_tokens"`
OutputTokens sql.NullInt64 `json:"output_tokens"`
TotalTokens sql.NullInt64 `json:"total_tokens"`
ThoughtTokens sql.NullInt64 `json:"thought_tokens"`
CacheReadTokens sql.NullInt64 `json:"cache_read_tokens"`
CacheWriteTokens sql.NullInt64 `json:"cache_write_tokens"`
ContextUsed sql.NullInt64 `json:"context_used"`
ContextSize sql.NullInt64 `json:"context_size"`
CostAmount sql.NullFloat64 `json:"cost_amount"`
CostCurrency sql.NullString `json:"cost_currency"`
Timestamp string `json:"timestamp"`
}
type UpsertTranscriptEntryParams ¶
type UpsertTranscriptEntryParams struct {
EntryKey string `json:"entry_key"`
Kind string `json:"kind"`
LogicalID string `json:"logical_id"`
TurnID string `json:"turn_id"`
BaseMessageID string `json:"base_message_id"`
MessageID string `json:"message_id"`
StartSequence int64 `json:"start_sequence"`
UpdatedSequence int64 `json:"updated_sequence"`
Complete int64 `json:"complete"`
MessageJson sql.NullString `json:"message_json"`
EventType string `json:"event_type"`
MarkerJson sql.NullString `json:"marker_json"`
}
Click to show internal directories.
Click to hide internal directories.