sqlcgen

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveEventRangeParams

type ArchiveEventRangeParams struct {
	FromSequence int64 `json:"from_sequence"`
	ToSequence   int64 `json:"to_sequence"`
}

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 ConversationRewindState struct {
	Singleton              int64  `json:"singleton"`
	TargetMessageID        string `json:"target_message_id"`
	CoveredThroughSequence int64  `json:"covered_through_sequence"`
	MessagesJson           string `json:"messages_json"`
	BaselineStale          int64  `json:"baseline_stale"`
	UpdatedAt              string `json:"updated_at"`
}

type CountTranscriptEntriesCrossingCutParams

type CountTranscriptEntriesCrossingCutParams struct {
	FromSequence int64 `json:"from_sequence"`
	ToSequence   int64 `json:"to_sequence"`
}

type CountTranscriptMessageIDConflictsParams

type CountTranscriptMessageIDConflictsParams struct {
	MessageID string `json:"message_id"`
	EntryKey  string `json:"entry_key"`
}

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...any) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...any) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...any) *sql.Row
}

type DeleteTranscriptEntriesInRangeParams

type DeleteTranscriptEntriesInRangeParams struct {
	FromSequence int64 `json:"from_sequence"`
	ToSequence   int64 `json:"to_sequence"`
}

type DeleteTranscriptToolRoutesInRangeParams

type DeleteTranscriptToolRoutesInRangeParams struct {
	FromSequence int64 `json:"from_sequence"`
	ToSequence   int64 `json:"to_sequence"`
}

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 GetConversationRewindStateRow

type GetConversationRewindStateRow struct {
	TargetMessageID        string `json:"target_message_id"`
	CoveredThroughSequence int64  `json:"covered_through_sequence"`
	MessagesJson           string `json:"messages_json"`
	UpdatedAt              string `json:"updated_at"`
	BaselineStale          int64  `json:"baseline_stale"`
}

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 GetEventByIDRow 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"`
}

type GetLatestAssistantTranscriptIdentityParams

type GetLatestAssistantTranscriptIdentityParams struct {
	Kind   string `json:"kind"`
	TurnID string `json:"turn_id"`
}

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 GetTranscriptEntryEventBoundsParams

type GetTranscriptEntryEventBoundsParams struct {
	TranscriptEntryKey string `json:"transcript_entry_key"`
	ThroughSequence    int64  `json:"through_sequence"`
}

type GetTranscriptEntryEventBoundsRow

type GetTranscriptEntryEventBoundsRow struct {
	EventCount  int64 `json:"event_count"`
	MaxSequence int64 `json:"max_sequence"`
}

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 GetTranscriptProjectionStateRow

type GetTranscriptProjectionStateRow struct {
	ProjectionVersion int64  `json:"projection_version"`
	Generation        int64  `json:"generation"`
	ActiveEntryKey    string `json:"active_entry_key"`
}

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 GetTranscriptUserAnchorRow

type GetTranscriptUserAnchorRow struct {
	Kind          string         `json:"kind"`
	MessageID     sql.NullString `json:"message_id"`
	TurnID        string         `json:"turn_id"`
	StartSequence int64          `json:"start_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 ListEventsForTranscriptEntryAfterParams

type ListEventsForTranscriptEntryAfterParams struct {
	TranscriptEntryKey string `json:"transcript_entry_key"`
	AfterSequence      int64  `json:"after_sequence"`
}

type ListEventsForTranscriptEntryAfterRow

type ListEventsForTranscriptEntryAfterRow 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"`
}

type ListEventsForTranscriptEntryRow

type ListEventsForTranscriptEntryRow 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"`
}

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 ListTranscriptChangesParams

type ListTranscriptChangesParams struct {
	AfterSequence int64 `json:"after_sequence"`
	SequenceLimit int64 `json:"sequence_limit"`
}

type ListTranscriptChangesRow

type ListTranscriptChangesRow 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 ListTranscriptEntriesBeforeParams

type ListTranscriptEntriesBeforeParams struct {
	BeforeSequence int64 `json:"before_sequence"`
	RowLimit       int64 `json:"row_limit"`
}

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 ListTranscriptOutlineCandidatesParams

type ListTranscriptOutlineCandidatesParams struct {
	AfterSequence int64 `json:"after_sequence"`
	RowLimit      int64 `json:"row_limit"`
}

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 ListTranscriptSearchCandidatesParams

type ListTranscriptSearchCandidatesParams struct {
	AfterSequence int64 `json:"after_sequence"`
	RowLimit      int64 `json:"row_limit"`
}

type ListTranscriptSearchCandidatesRow

type ListTranscriptSearchCandidatesRow struct {
	MessageJson   sql.NullString `json:"message_json"`
	StartSequence int64          `json:"start_sequence"`
	TurnID        string         `json:"turn_id"`
}

type ListTranscriptSessionPromptEventsForUpgradeParams

type ListTranscriptSessionPromptEventsForUpgradeParams struct {
	AfterSequence int64 `json:"after_sequence"`
	RowLimit      int64 `json:"row_limit"`
}

type ListTranscriptSessionPromptEventsForUpgradeRow

type ListTranscriptSessionPromptEventsForUpgradeRow struct {
	Sequence           int64  `json:"sequence"`
	TranscriptEntryKey string `json:"transcript_entry_key"`
	Content            string `json:"content"`
}

type ListTranscriptTextEventsForUpgradeParams

type ListTranscriptTextEventsForUpgradeParams struct {
	AfterSequence int64 `json:"after_sequence"`
	RowLimit      int64 `json:"row_limit"`
}

type ListTranscriptTextEventsForUpgradeRow

type ListTranscriptTextEventsForUpgradeRow struct {
	Sequence           int64  `json:"sequence"`
	TranscriptEntryKey string `json:"transcript_entry_key"`
	Content            string `json:"content"`
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) AdvanceTranscriptProjectionGeneration

func (q *Queries) AdvanceTranscriptProjectionGeneration(ctx context.Context) error

func (*Queries) ArchiveEventRange

func (q *Queries) ArchiveEventRange(ctx context.Context, arg ArchiveEventRangeParams) (int64, error)

func (*Queries) ClearConversationRewindReceipts

func (q *Queries) ClearConversationRewindReceipts(ctx context.Context) error

func (*Queries) ClearConversationRewindState

func (q *Queries) ClearConversationRewindState(ctx context.Context) error

func (*Queries) ClearEvents

func (q *Queries) ClearEvents(ctx context.Context) error

func (*Queries) ClearHookRuns

func (q *Queries) ClearHookRuns(ctx context.Context) error

func (*Queries) ClearTokenUsage

func (q *Queries) ClearTokenUsage(ctx context.Context) error

func (*Queries) ClearTranscriptEntries

func (q *Queries) ClearTranscriptEntries(ctx context.Context) error

func (*Queries) ClearTranscriptToolRoutes

func (q *Queries) ClearTranscriptToolRoutes(ctx context.Context) error

func (*Queries) CountArchivedTranscriptEventsBeforeSequence

func (q *Queries) CountArchivedTranscriptEventsBeforeSequence(ctx context.Context, beforeSequence int64) (int64, error)

func (*Queries) CountTranscriptEntriesCrossingCut

func (q *Queries) CountTranscriptEntriesCrossingCut(ctx context.Context, arg CountTranscriptEntriesCrossingCutParams) (int64, error)

func (*Queries) CountTranscriptMessageIDConflicts

func (q *Queries) CountTranscriptMessageIDConflicts(ctx context.Context, arg CountTranscriptMessageIDConflictsParams) (int64, error)

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 (q *Queries) GetConversationRewindReceipt(ctx context.Context, idempotencyKey string) (ConversationRewindReceipt, error)

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 (q *Queries) GetEventByID(ctx context.Context, id string) (GetEventByIDRow, error)

func (*Queries) GetTranscriptEntryIdentity

func (q *Queries) GetTranscriptEntryIdentity(ctx context.Context, entryKey string) (GetTranscriptEntryIdentityRow, error)

func (*Queries) GetTranscriptEntryUpgradeCutoff

func (q *Queries) GetTranscriptEntryUpgradeCutoff(ctx context.Context, entryKey string) (int64, error)

A fired event precedes archival and can represent a failed attempt. The last attempt covering every assigned event identifies the successful cut: subsequent compaction spans only inspect unarchived events and cannot cover this entry.

func (*Queries) GetTranscriptProjectionState

func (q *Queries) GetTranscriptProjectionState(ctx context.Context) (GetTranscriptProjectionStateRow, error)

func (*Queries) GetTranscriptToolEntryIdentity

func (q *Queries) GetTranscriptToolEntryIdentity(ctx context.Context, toolKey string) (GetTranscriptToolEntryIdentityRow, error)

func (*Queries) GetTranscriptUserAnchor

func (q *Queries) GetTranscriptUserAnchor(ctx context.Context, messageID sql.NullString) (GetTranscriptUserAnchorRow, error)

func (*Queries) InitializeTranscriptProjectionState

func (q *Queries) InitializeTranscriptProjectionState(ctx context.Context, projectionVersion int64) error

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 (q *Queries) ListEventsForTranscriptEntry(ctx context.Context, transcriptEntryKey string) ([]ListEventsForTranscriptEntryRow, error)

func (*Queries) ListLatestTranscriptEntries

func (q *Queries) ListLatestTranscriptEntries(ctx context.Context, rowLimit int64) ([]ListLatestTranscriptEntriesRow, error)

func (*Queries) ListMissingUnarchivedCompactionEntries

func (q *Queries) ListMissingUnarchivedCompactionEntries(ctx context.Context) ([]string, error)

func (*Queries) ListTokenUsage

func (q *Queries) ListTokenUsage(ctx context.Context) ([]TokenUsage, error)

func (*Queries) ListTranscriptChanges

func (q *Queries) ListTranscriptChanges(ctx context.Context, arg ListTranscriptChangesParams) ([]ListTranscriptChangesRow, error)

func (*Queries) ListTranscriptCostEntryKeysForUpgrade

func (q *Queries) ListTranscriptCostEntryKeysForUpgrade(ctx context.Context) ([]string, error)

func (*Queries) ListTranscriptKeyedEventsThrough

func (q *Queries) ListTranscriptKeyedEventsThrough(ctx context.Context, throughSequence int64) ([]Event, error)

func (*Queries) MaxActiveEventSequence

func (q *Queries) MaxActiveEventSequence(ctx context.Context) (int64, error)

func (*Queries) MaxEventSequence

func (q *Queries) MaxEventSequence(ctx context.Context) (int64, error)

func (*Queries) MinActiveEventSequence

func (q *Queries) MinActiveEventSequence(ctx context.Context) (int64, error)

func (*Queries) RefreshConversationRewindBaseline

func (q *Queries) RefreshConversationRewindBaseline(ctx context.Context, arg RefreshConversationRewindBaselineParams) (int64, error)

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

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type RefreshConversationRewindBaselineParams

type RefreshConversationRewindBaselineParams struct {
	MessagesJson           string `json:"messages_json"`
	UpdatedAt              string `json:"updated_at"`
	CoveredThroughSequence int64  `json:"covered_through_sequence"`
}

type SessionDbIdentity

type SessionDbIdentity struct {
	Singleton  int64  `json:"singleton"`
	DatabaseID string `json:"database_id"`
}

type SessionDbOwner

type SessionDbOwner struct {
	Singleton   int64  `json:"singleton"`
	SessionID   string `json:"session_id"`
	WorkspaceID string `json:"workspace_id"`
}

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"`
	ReportedCostAmount sql.NullFloat64 `json:"reported_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 TranscriptToolRoute struct {
	ToolKey  string `json:"tool_key"`
	EntryKey string `json:"entry_key"`
}

type UpdateTranscriptProjectionStateParams

type UpdateTranscriptProjectionStateParams struct {
	ProjectionVersion int64  `json:"projection_version"`
	Generation        int64  `json:"generation"`
	ActiveEntryKey    string `json:"active_entry_key"`
}

type UpsertConversationRewindStateParams

type UpsertConversationRewindStateParams struct {
	TargetMessageID        string `json:"target_message_id"`
	CoveredThroughSequence int64  `json:"covered_through_sequence"`
	MessagesJson           string `json:"messages_json"`
	UpdatedAt              string `json:"updated_at"`
}

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"`
	ReportedCostAmount sql.NullFloat64 `json:"reported_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"`
}

type UpsertTranscriptToolRouteParams

type UpsertTranscriptToolRouteParams struct {
	ToolKey  string `json:"tool_key"`
	EntryKey string `json:"entry_key"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL