Documentation
¶
Index ¶
- type AncestryChainsParams
- type AncestryChainsRow
- type CountLeafSessionsParams
- type CountRootsParams
- type CountTurnsParams
- type DBTX
- type InsertNodeParams
- type ListParentRefsRow
- type ListSessionsParams
- type Node
- type Queries
- func (q *Queries) AncestryChains(ctx context.Context, arg AncestryChainsParams) ([]AncestryChainsRow, error)
- func (q *Queries) CountLeafSessions(ctx context.Context, arg CountLeafSessionsParams) (int64, error)
- func (q *Queries) CountRoots(ctx context.Context, arg CountRootsParams) (int64, error)
- func (q *Queries) CountTurns(ctx context.Context, arg CountTurnsParams) (int64, error)
- func (q *Queries) DuckdbForceExecution(ctx context.Context) error
- func (q *Queries) GetNode(ctx context.Context, hash string) (Node, error)
- func (q *Queries) GetNodesByParent(ctx context.Context, parentHash pgtype.Text) ([]Node, error)
- func (q *Queries) GetRootNodes(ctx context.Context) ([]Node, error)
- func (q *Queries) HasNode(ctx context.Context, hash string) (bool, error)
- func (q *Queries) InsertNode(ctx context.Context, arg InsertNodeParams) (int64, error)
- func (q *Queries) ListLeaves(ctx context.Context) ([]Node, error)
- func (q *Queries) ListNodes(ctx context.Context) ([]Node, error)
- func (q *Queries) ListParentRefs(ctx context.Context) ([]ListParentRefsRow, error)
- func (q *Queries) ListSessions(ctx context.Context, arg ListSessionsParams) ([]Node, error)
- func (q *Queries) UpdateUsage(ctx context.Context, arg UpdateUsageParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type UpdateUsageParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AncestryChainsParams ¶
type AncestryChainsRow ¶
type AncestryChainsRow struct {
StartHash interface{}
Hash interface{}
ParentHash interface{}
Bucket interface{}
Type interface{}
Role interface{}
Content interface{}
Model interface{}
Provider interface{}
AgentName interface{}
StopReason interface{}
PromptTokens interface{}
CompletionTokens interface{}
TotalTokens interface{}
CacheCreationInputTokens interface{}
CacheReadInputTokens interface{}
TotalDurationNs interface{}
PromptDurationNs interface{}
Project interface{}
CreatedAt pgtype.Timestamptz
Depth int32
HasUsage bool
}
type CountLeafSessionsParams ¶
type CountRootsParams ¶
type CountTurnsParams ¶
type InsertNodeParams ¶
type InsertNodeParams struct {
Hash string
Bucket []byte
Type pgtype.Text
Role pgtype.Text
Content []byte
Model pgtype.Text
Provider pgtype.Text
AgentName pgtype.Text
StopReason pgtype.Text
PromptTokens pgtype.Int4
CompletionTokens pgtype.Int4
TotalTokens pgtype.Int4
CacheCreationInputTokens pgtype.Int4
CacheReadInputTokens pgtype.Int4
TotalDurationNs pgtype.Int8
PromptDurationNs pgtype.Int8
Project pgtype.Text
CreatedAt pgtype.Timestamptz
ParentHash pgtype.Text
}
type ListParentRefsRow ¶
type ListSessionsParams ¶
type Node ¶
type Node struct {
Hash string
Bucket []byte
Type pgtype.Text
Role pgtype.Text
Content []byte
Model pgtype.Text
Provider pgtype.Text
AgentName pgtype.Text
StopReason pgtype.Text
PromptTokens pgtype.Int4
CompletionTokens pgtype.Int4
TotalTokens pgtype.Int4
CacheCreationInputTokens pgtype.Int4
CacheReadInputTokens pgtype.Int4
TotalDurationNs pgtype.Int8
PromptDurationNs pgtype.Int8
Project pgtype.Text
CreatedAt pgtype.Timestamptz
ParentHash pgtype.Text
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AncestryChains ¶
func (q *Queries) AncestryChains(ctx context.Context, arg AncestryChainsParams) ([]AncestryChainsRow, error)
func (*Queries) CountLeafSessions ¶
func (*Queries) CountRoots ¶
func (*Queries) CountTurns ¶
func (*Queries) DuckdbForceExecution ¶
func (*Queries) GetNodesByParent ¶
func (*Queries) InsertNode ¶
func (*Queries) ListParentRefs ¶
func (q *Queries) ListParentRefs(ctx context.Context) ([]ListParentRefsRow, error)
func (*Queries) ListSessions ¶
func (*Queries) UpdateUsage ¶
func (q *Queries) UpdateUsage(ctx context.Context, arg UpdateUsageParams) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.