node

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the node type in the database.
	Label = "node"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "hash"
	// FieldParentHash holds the string denoting the parent_hash field in the database.
	FieldParentHash = "parent_hash"
	// FieldBucket holds the string denoting the bucket field in the database.
	FieldBucket = "bucket"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldRole holds the string denoting the role field in the database.
	FieldRole = "role"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldModel holds the string denoting the model field in the database.
	FieldModel = "model"
	// FieldProvider holds the string denoting the provider field in the database.
	FieldProvider = "provider"
	// FieldAgentName holds the string denoting the agent_name field in the database.
	FieldAgentName = "agent_name"
	// FieldStopReason holds the string denoting the stop_reason field in the database.
	FieldStopReason = "stop_reason"
	// FieldPromptTokens holds the string denoting the prompt_tokens field in the database.
	FieldPromptTokens = "prompt_tokens"
	// FieldCompletionTokens holds the string denoting the completion_tokens field in the database.
	FieldCompletionTokens = "completion_tokens"
	// FieldTotalTokens holds the string denoting the total_tokens field in the database.
	FieldTotalTokens = "total_tokens"
	// FieldCacheCreationInputTokens holds the string denoting the cache_creation_input_tokens field in the database.
	FieldCacheCreationInputTokens = "cache_creation_input_tokens"
	// FieldCacheReadInputTokens holds the string denoting the cache_read_input_tokens field in the database.
	FieldCacheReadInputTokens = "cache_read_input_tokens"
	// FieldTotalDurationNs holds the string denoting the total_duration_ns field in the database.
	FieldTotalDurationNs = "total_duration_ns"
	// FieldPromptDurationNs holds the string denoting the prompt_duration_ns field in the database.
	FieldPromptDurationNs = "prompt_duration_ns"
	// FieldProject holds the string denoting the project field in the database.
	FieldProject = "project"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeParent holds the string denoting the parent edge name in mutations.
	EdgeParent = "parent"
	// EdgeChildren holds the string denoting the children edge name in mutations.
	EdgeChildren = "children"
	// Table holds the table name of the node in the database.
	Table = "nodes"
	// ParentTable is the table that holds the parent relation/edge.
	ParentTable = "nodes"
	// ParentColumn is the table column denoting the parent relation/edge.
	ParentColumn = "parent_hash"
	// ChildrenTable is the table that holds the children relation/edge.
	ChildrenTable = "nodes"
	// ChildrenColumn is the table column denoting the children relation/edge.
	ChildrenColumn = "parent_hash"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for node fields.

Functions

func AgentName

func AgentName(v string) predicate.Node

AgentName applies equality check predicate on the "agent_name" field. It's identical to AgentNameEQ.

func AgentNameContains

func AgentNameContains(v string) predicate.Node

AgentNameContains applies the Contains predicate on the "agent_name" field.

func AgentNameContainsFold

func AgentNameContainsFold(v string) predicate.Node

AgentNameContainsFold applies the ContainsFold predicate on the "agent_name" field.

func AgentNameEQ

func AgentNameEQ(v string) predicate.Node

AgentNameEQ applies the EQ predicate on the "agent_name" field.

func AgentNameEqualFold

func AgentNameEqualFold(v string) predicate.Node

AgentNameEqualFold applies the EqualFold predicate on the "agent_name" field.

func AgentNameGT

func AgentNameGT(v string) predicate.Node

AgentNameGT applies the GT predicate on the "agent_name" field.

func AgentNameGTE

func AgentNameGTE(v string) predicate.Node

AgentNameGTE applies the GTE predicate on the "agent_name" field.

func AgentNameHasPrefix

func AgentNameHasPrefix(v string) predicate.Node

AgentNameHasPrefix applies the HasPrefix predicate on the "agent_name" field.

func AgentNameHasSuffix

func AgentNameHasSuffix(v string) predicate.Node

AgentNameHasSuffix applies the HasSuffix predicate on the "agent_name" field.

func AgentNameIn

func AgentNameIn(vs ...string) predicate.Node

AgentNameIn applies the In predicate on the "agent_name" field.

func AgentNameIsNil

func AgentNameIsNil() predicate.Node

AgentNameIsNil applies the IsNil predicate on the "agent_name" field.

func AgentNameLT

func AgentNameLT(v string) predicate.Node

AgentNameLT applies the LT predicate on the "agent_name" field.

func AgentNameLTE

func AgentNameLTE(v string) predicate.Node

AgentNameLTE applies the LTE predicate on the "agent_name" field.

func AgentNameNEQ

func AgentNameNEQ(v string) predicate.Node

AgentNameNEQ applies the NEQ predicate on the "agent_name" field.

func AgentNameNotIn

func AgentNameNotIn(vs ...string) predicate.Node

AgentNameNotIn applies the NotIn predicate on the "agent_name" field.

func AgentNameNotNil

func AgentNameNotNil() predicate.Node

AgentNameNotNil applies the NotNil predicate on the "agent_name" field.

func And

func And(predicates ...predicate.Node) predicate.Node

And groups predicates with the AND operator between them.

func BucketIsNil

func BucketIsNil() predicate.Node

BucketIsNil applies the IsNil predicate on the "bucket" field.

func BucketNotNil

func BucketNotNil() predicate.Node

BucketNotNil applies the NotNil predicate on the "bucket" field.

func CacheCreationInputTokens

func CacheCreationInputTokens(v int) predicate.Node

CacheCreationInputTokens applies equality check predicate on the "cache_creation_input_tokens" field. It's identical to CacheCreationInputTokensEQ.

func CacheCreationInputTokensEQ

func CacheCreationInputTokensEQ(v int) predicate.Node

CacheCreationInputTokensEQ applies the EQ predicate on the "cache_creation_input_tokens" field.

func CacheCreationInputTokensGT

func CacheCreationInputTokensGT(v int) predicate.Node

CacheCreationInputTokensGT applies the GT predicate on the "cache_creation_input_tokens" field.

func CacheCreationInputTokensGTE

func CacheCreationInputTokensGTE(v int) predicate.Node

CacheCreationInputTokensGTE applies the GTE predicate on the "cache_creation_input_tokens" field.

func CacheCreationInputTokensIn

func CacheCreationInputTokensIn(vs ...int) predicate.Node

CacheCreationInputTokensIn applies the In predicate on the "cache_creation_input_tokens" field.

func CacheCreationInputTokensIsNil

func CacheCreationInputTokensIsNil() predicate.Node

CacheCreationInputTokensIsNil applies the IsNil predicate on the "cache_creation_input_tokens" field.

func CacheCreationInputTokensLT

func CacheCreationInputTokensLT(v int) predicate.Node

CacheCreationInputTokensLT applies the LT predicate on the "cache_creation_input_tokens" field.

func CacheCreationInputTokensLTE

func CacheCreationInputTokensLTE(v int) predicate.Node

CacheCreationInputTokensLTE applies the LTE predicate on the "cache_creation_input_tokens" field.

func CacheCreationInputTokensNEQ

func CacheCreationInputTokensNEQ(v int) predicate.Node

CacheCreationInputTokensNEQ applies the NEQ predicate on the "cache_creation_input_tokens" field.

func CacheCreationInputTokensNotIn

func CacheCreationInputTokensNotIn(vs ...int) predicate.Node

CacheCreationInputTokensNotIn applies the NotIn predicate on the "cache_creation_input_tokens" field.

func CacheCreationInputTokensNotNil

func CacheCreationInputTokensNotNil() predicate.Node

CacheCreationInputTokensNotNil applies the NotNil predicate on the "cache_creation_input_tokens" field.

func CacheReadInputTokens

func CacheReadInputTokens(v int) predicate.Node

CacheReadInputTokens applies equality check predicate on the "cache_read_input_tokens" field. It's identical to CacheReadInputTokensEQ.

func CacheReadInputTokensEQ

func CacheReadInputTokensEQ(v int) predicate.Node

CacheReadInputTokensEQ applies the EQ predicate on the "cache_read_input_tokens" field.

func CacheReadInputTokensGT

func CacheReadInputTokensGT(v int) predicate.Node

CacheReadInputTokensGT applies the GT predicate on the "cache_read_input_tokens" field.

func CacheReadInputTokensGTE

func CacheReadInputTokensGTE(v int) predicate.Node

CacheReadInputTokensGTE applies the GTE predicate on the "cache_read_input_tokens" field.

func CacheReadInputTokensIn

func CacheReadInputTokensIn(vs ...int) predicate.Node

CacheReadInputTokensIn applies the In predicate on the "cache_read_input_tokens" field.

func CacheReadInputTokensIsNil

func CacheReadInputTokensIsNil() predicate.Node

CacheReadInputTokensIsNil applies the IsNil predicate on the "cache_read_input_tokens" field.

func CacheReadInputTokensLT

func CacheReadInputTokensLT(v int) predicate.Node

CacheReadInputTokensLT applies the LT predicate on the "cache_read_input_tokens" field.

func CacheReadInputTokensLTE

func CacheReadInputTokensLTE(v int) predicate.Node

CacheReadInputTokensLTE applies the LTE predicate on the "cache_read_input_tokens" field.

func CacheReadInputTokensNEQ

func CacheReadInputTokensNEQ(v int) predicate.Node

CacheReadInputTokensNEQ applies the NEQ predicate on the "cache_read_input_tokens" field.

func CacheReadInputTokensNotIn

func CacheReadInputTokensNotIn(vs ...int) predicate.Node

CacheReadInputTokensNotIn applies the NotIn predicate on the "cache_read_input_tokens" field.

func CacheReadInputTokensNotNil

func CacheReadInputTokensNotNil() predicate.Node

CacheReadInputTokensNotNil applies the NotNil predicate on the "cache_read_input_tokens" field.

func CompletionTokens

func CompletionTokens(v int) predicate.Node

CompletionTokens applies equality check predicate on the "completion_tokens" field. It's identical to CompletionTokensEQ.

func CompletionTokensEQ

func CompletionTokensEQ(v int) predicate.Node

CompletionTokensEQ applies the EQ predicate on the "completion_tokens" field.

func CompletionTokensGT

func CompletionTokensGT(v int) predicate.Node

CompletionTokensGT applies the GT predicate on the "completion_tokens" field.

func CompletionTokensGTE

func CompletionTokensGTE(v int) predicate.Node

CompletionTokensGTE applies the GTE predicate on the "completion_tokens" field.

func CompletionTokensIn

func CompletionTokensIn(vs ...int) predicate.Node

CompletionTokensIn applies the In predicate on the "completion_tokens" field.

func CompletionTokensIsNil

func CompletionTokensIsNil() predicate.Node

CompletionTokensIsNil applies the IsNil predicate on the "completion_tokens" field.

func CompletionTokensLT

func CompletionTokensLT(v int) predicate.Node

CompletionTokensLT applies the LT predicate on the "completion_tokens" field.

func CompletionTokensLTE

func CompletionTokensLTE(v int) predicate.Node

CompletionTokensLTE applies the LTE predicate on the "completion_tokens" field.

func CompletionTokensNEQ

func CompletionTokensNEQ(v int) predicate.Node

CompletionTokensNEQ applies the NEQ predicate on the "completion_tokens" field.

func CompletionTokensNotIn

func CompletionTokensNotIn(vs ...int) predicate.Node

CompletionTokensNotIn applies the NotIn predicate on the "completion_tokens" field.

func CompletionTokensNotNil

func CompletionTokensNotNil() predicate.Node

CompletionTokensNotNil applies the NotNil predicate on the "completion_tokens" field.

func ContentIsNil

func ContentIsNil() predicate.Node

ContentIsNil applies the IsNil predicate on the "content" field.

func ContentNotNil

func ContentNotNil() predicate.Node

ContentNotNil applies the NotNil predicate on the "content" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Node

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Node

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Node

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Node

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Node

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Node

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Node

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Node

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Node

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasChildren

func HasChildren() predicate.Node

HasChildren applies the HasEdge predicate on the "children" edge.

func HasChildrenWith

func HasChildrenWith(preds ...predicate.Node) predicate.Node

HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).

func HasParent

func HasParent() predicate.Node

HasParent applies the HasEdge predicate on the "parent" edge.

func HasParentWith

func HasParentWith(preds ...predicate.Node) predicate.Node

HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).

func ID

func ID(id string) predicate.Node

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Node

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Node

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Node

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Node

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Node

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Node

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Node

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Node

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Node

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Node

IDNotIn applies the NotIn predicate on the ID field.

func Model

func Model(v string) predicate.Node

Model applies equality check predicate on the "model" field. It's identical to ModelEQ.

func ModelContains

func ModelContains(v string) predicate.Node

ModelContains applies the Contains predicate on the "model" field.

func ModelContainsFold

func ModelContainsFold(v string) predicate.Node

ModelContainsFold applies the ContainsFold predicate on the "model" field.

func ModelEQ

func ModelEQ(v string) predicate.Node

ModelEQ applies the EQ predicate on the "model" field.

func ModelEqualFold

func ModelEqualFold(v string) predicate.Node

ModelEqualFold applies the EqualFold predicate on the "model" field.

func ModelGT

func ModelGT(v string) predicate.Node

ModelGT applies the GT predicate on the "model" field.

func ModelGTE

func ModelGTE(v string) predicate.Node

ModelGTE applies the GTE predicate on the "model" field.

func ModelHasPrefix

func ModelHasPrefix(v string) predicate.Node

ModelHasPrefix applies the HasPrefix predicate on the "model" field.

func ModelHasSuffix

func ModelHasSuffix(v string) predicate.Node

ModelHasSuffix applies the HasSuffix predicate on the "model" field.

func ModelIn

func ModelIn(vs ...string) predicate.Node

ModelIn applies the In predicate on the "model" field.

func ModelIsNil

func ModelIsNil() predicate.Node

ModelIsNil applies the IsNil predicate on the "model" field.

func ModelLT

func ModelLT(v string) predicate.Node

ModelLT applies the LT predicate on the "model" field.

func ModelLTE

func ModelLTE(v string) predicate.Node

ModelLTE applies the LTE predicate on the "model" field.

func ModelNEQ

func ModelNEQ(v string) predicate.Node

ModelNEQ applies the NEQ predicate on the "model" field.

func ModelNotIn

func ModelNotIn(vs ...string) predicate.Node

ModelNotIn applies the NotIn predicate on the "model" field.

func ModelNotNil

func ModelNotNil() predicate.Node

ModelNotNil applies the NotNil predicate on the "model" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Node) predicate.Node

Or groups predicates with the OR operator between them.

func ParentHash

func ParentHash(v string) predicate.Node

ParentHash applies equality check predicate on the "parent_hash" field. It's identical to ParentHashEQ.

func ParentHashContains

func ParentHashContains(v string) predicate.Node

ParentHashContains applies the Contains predicate on the "parent_hash" field.

func ParentHashContainsFold

func ParentHashContainsFold(v string) predicate.Node

ParentHashContainsFold applies the ContainsFold predicate on the "parent_hash" field.

func ParentHashEQ

func ParentHashEQ(v string) predicate.Node

ParentHashEQ applies the EQ predicate on the "parent_hash" field.

func ParentHashEqualFold

func ParentHashEqualFold(v string) predicate.Node

ParentHashEqualFold applies the EqualFold predicate on the "parent_hash" field.

func ParentHashGT

func ParentHashGT(v string) predicate.Node

ParentHashGT applies the GT predicate on the "parent_hash" field.

func ParentHashGTE

func ParentHashGTE(v string) predicate.Node

ParentHashGTE applies the GTE predicate on the "parent_hash" field.

func ParentHashHasPrefix

func ParentHashHasPrefix(v string) predicate.Node

ParentHashHasPrefix applies the HasPrefix predicate on the "parent_hash" field.

func ParentHashHasSuffix

func ParentHashHasSuffix(v string) predicate.Node

ParentHashHasSuffix applies the HasSuffix predicate on the "parent_hash" field.

func ParentHashIn

func ParentHashIn(vs ...string) predicate.Node

ParentHashIn applies the In predicate on the "parent_hash" field.

func ParentHashIsNil

func ParentHashIsNil() predicate.Node

ParentHashIsNil applies the IsNil predicate on the "parent_hash" field.

func ParentHashLT

func ParentHashLT(v string) predicate.Node

ParentHashLT applies the LT predicate on the "parent_hash" field.

func ParentHashLTE

func ParentHashLTE(v string) predicate.Node

ParentHashLTE applies the LTE predicate on the "parent_hash" field.

func ParentHashNEQ

func ParentHashNEQ(v string) predicate.Node

ParentHashNEQ applies the NEQ predicate on the "parent_hash" field.

func ParentHashNotIn

func ParentHashNotIn(vs ...string) predicate.Node

ParentHashNotIn applies the NotIn predicate on the "parent_hash" field.

func ParentHashNotNil

func ParentHashNotNil() predicate.Node

ParentHashNotNil applies the NotNil predicate on the "parent_hash" field.

func Project

func Project(v string) predicate.Node

Project applies equality check predicate on the "project" field. It's identical to ProjectEQ.

func ProjectContains

func ProjectContains(v string) predicate.Node

ProjectContains applies the Contains predicate on the "project" field.

func ProjectContainsFold

func ProjectContainsFold(v string) predicate.Node

ProjectContainsFold applies the ContainsFold predicate on the "project" field.

func ProjectEQ

func ProjectEQ(v string) predicate.Node

ProjectEQ applies the EQ predicate on the "project" field.

func ProjectEqualFold

func ProjectEqualFold(v string) predicate.Node

ProjectEqualFold applies the EqualFold predicate on the "project" field.

func ProjectGT

func ProjectGT(v string) predicate.Node

ProjectGT applies the GT predicate on the "project" field.

func ProjectGTE

func ProjectGTE(v string) predicate.Node

ProjectGTE applies the GTE predicate on the "project" field.

func ProjectHasPrefix

func ProjectHasPrefix(v string) predicate.Node

ProjectHasPrefix applies the HasPrefix predicate on the "project" field.

func ProjectHasSuffix

func ProjectHasSuffix(v string) predicate.Node

ProjectHasSuffix applies the HasSuffix predicate on the "project" field.

func ProjectIn

func ProjectIn(vs ...string) predicate.Node

ProjectIn applies the In predicate on the "project" field.

func ProjectIsNil

func ProjectIsNil() predicate.Node

ProjectIsNil applies the IsNil predicate on the "project" field.

func ProjectLT

func ProjectLT(v string) predicate.Node

ProjectLT applies the LT predicate on the "project" field.

func ProjectLTE

func ProjectLTE(v string) predicate.Node

ProjectLTE applies the LTE predicate on the "project" field.

func ProjectNEQ

func ProjectNEQ(v string) predicate.Node

ProjectNEQ applies the NEQ predicate on the "project" field.

func ProjectNotIn

func ProjectNotIn(vs ...string) predicate.Node

ProjectNotIn applies the NotIn predicate on the "project" field.

func ProjectNotNil

func ProjectNotNil() predicate.Node

ProjectNotNil applies the NotNil predicate on the "project" field.

func PromptDurationNs

func PromptDurationNs(v int64) predicate.Node

PromptDurationNs applies equality check predicate on the "prompt_duration_ns" field. It's identical to PromptDurationNsEQ.

func PromptDurationNsEQ

func PromptDurationNsEQ(v int64) predicate.Node

PromptDurationNsEQ applies the EQ predicate on the "prompt_duration_ns" field.

func PromptDurationNsGT

func PromptDurationNsGT(v int64) predicate.Node

PromptDurationNsGT applies the GT predicate on the "prompt_duration_ns" field.

func PromptDurationNsGTE

func PromptDurationNsGTE(v int64) predicate.Node

PromptDurationNsGTE applies the GTE predicate on the "prompt_duration_ns" field.

func PromptDurationNsIn

func PromptDurationNsIn(vs ...int64) predicate.Node

PromptDurationNsIn applies the In predicate on the "prompt_duration_ns" field.

func PromptDurationNsIsNil

func PromptDurationNsIsNil() predicate.Node

PromptDurationNsIsNil applies the IsNil predicate on the "prompt_duration_ns" field.

func PromptDurationNsLT

func PromptDurationNsLT(v int64) predicate.Node

PromptDurationNsLT applies the LT predicate on the "prompt_duration_ns" field.

func PromptDurationNsLTE

func PromptDurationNsLTE(v int64) predicate.Node

PromptDurationNsLTE applies the LTE predicate on the "prompt_duration_ns" field.

func PromptDurationNsNEQ

func PromptDurationNsNEQ(v int64) predicate.Node

PromptDurationNsNEQ applies the NEQ predicate on the "prompt_duration_ns" field.

func PromptDurationNsNotIn

func PromptDurationNsNotIn(vs ...int64) predicate.Node

PromptDurationNsNotIn applies the NotIn predicate on the "prompt_duration_ns" field.

func PromptDurationNsNotNil

func PromptDurationNsNotNil() predicate.Node

PromptDurationNsNotNil applies the NotNil predicate on the "prompt_duration_ns" field.

func PromptTokens

func PromptTokens(v int) predicate.Node

PromptTokens applies equality check predicate on the "prompt_tokens" field. It's identical to PromptTokensEQ.

func PromptTokensEQ

func PromptTokensEQ(v int) predicate.Node

PromptTokensEQ applies the EQ predicate on the "prompt_tokens" field.

func PromptTokensGT

func PromptTokensGT(v int) predicate.Node

PromptTokensGT applies the GT predicate on the "prompt_tokens" field.

func PromptTokensGTE

func PromptTokensGTE(v int) predicate.Node

PromptTokensGTE applies the GTE predicate on the "prompt_tokens" field.

func PromptTokensIn

func PromptTokensIn(vs ...int) predicate.Node

PromptTokensIn applies the In predicate on the "prompt_tokens" field.

func PromptTokensIsNil

func PromptTokensIsNil() predicate.Node

PromptTokensIsNil applies the IsNil predicate on the "prompt_tokens" field.

func PromptTokensLT

func PromptTokensLT(v int) predicate.Node

PromptTokensLT applies the LT predicate on the "prompt_tokens" field.

func PromptTokensLTE

func PromptTokensLTE(v int) predicate.Node

PromptTokensLTE applies the LTE predicate on the "prompt_tokens" field.

func PromptTokensNEQ

func PromptTokensNEQ(v int) predicate.Node

PromptTokensNEQ applies the NEQ predicate on the "prompt_tokens" field.

func PromptTokensNotIn

func PromptTokensNotIn(vs ...int) predicate.Node

PromptTokensNotIn applies the NotIn predicate on the "prompt_tokens" field.

func PromptTokensNotNil

func PromptTokensNotNil() predicate.Node

PromptTokensNotNil applies the NotNil predicate on the "prompt_tokens" field.

func Provider

func Provider(v string) predicate.Node

Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.

func ProviderContains

func ProviderContains(v string) predicate.Node

ProviderContains applies the Contains predicate on the "provider" field.

func ProviderContainsFold

func ProviderContainsFold(v string) predicate.Node

ProviderContainsFold applies the ContainsFold predicate on the "provider" field.

func ProviderEQ

func ProviderEQ(v string) predicate.Node

ProviderEQ applies the EQ predicate on the "provider" field.

func ProviderEqualFold

func ProviderEqualFold(v string) predicate.Node

ProviderEqualFold applies the EqualFold predicate on the "provider" field.

func ProviderGT

func ProviderGT(v string) predicate.Node

ProviderGT applies the GT predicate on the "provider" field.

func ProviderGTE

func ProviderGTE(v string) predicate.Node

ProviderGTE applies the GTE predicate on the "provider" field.

func ProviderHasPrefix

func ProviderHasPrefix(v string) predicate.Node

ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.

func ProviderHasSuffix

func ProviderHasSuffix(v string) predicate.Node

ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.

func ProviderIn

func ProviderIn(vs ...string) predicate.Node

ProviderIn applies the In predicate on the "provider" field.

func ProviderIsNil

func ProviderIsNil() predicate.Node

ProviderIsNil applies the IsNil predicate on the "provider" field.

func ProviderLT

func ProviderLT(v string) predicate.Node

ProviderLT applies the LT predicate on the "provider" field.

func ProviderLTE

func ProviderLTE(v string) predicate.Node

ProviderLTE applies the LTE predicate on the "provider" field.

func ProviderNEQ

func ProviderNEQ(v string) predicate.Node

ProviderNEQ applies the NEQ predicate on the "provider" field.

func ProviderNotIn

func ProviderNotIn(vs ...string) predicate.Node

ProviderNotIn applies the NotIn predicate on the "provider" field.

func ProviderNotNil

func ProviderNotNil() predicate.Node

ProviderNotNil applies the NotNil predicate on the "provider" field.

func Role

func Role(v string) predicate.Node

Role applies equality check predicate on the "role" field. It's identical to RoleEQ.

func RoleContains

func RoleContains(v string) predicate.Node

RoleContains applies the Contains predicate on the "role" field.

func RoleContainsFold

func RoleContainsFold(v string) predicate.Node

RoleContainsFold applies the ContainsFold predicate on the "role" field.

func RoleEQ

func RoleEQ(v string) predicate.Node

RoleEQ applies the EQ predicate on the "role" field.

func RoleEqualFold

func RoleEqualFold(v string) predicate.Node

RoleEqualFold applies the EqualFold predicate on the "role" field.

func RoleGT

func RoleGT(v string) predicate.Node

RoleGT applies the GT predicate on the "role" field.

func RoleGTE

func RoleGTE(v string) predicate.Node

RoleGTE applies the GTE predicate on the "role" field.

func RoleHasPrefix

func RoleHasPrefix(v string) predicate.Node

RoleHasPrefix applies the HasPrefix predicate on the "role" field.

func RoleHasSuffix

func RoleHasSuffix(v string) predicate.Node

RoleHasSuffix applies the HasSuffix predicate on the "role" field.

func RoleIn

func RoleIn(vs ...string) predicate.Node

RoleIn applies the In predicate on the "role" field.

func RoleIsNil

func RoleIsNil() predicate.Node

RoleIsNil applies the IsNil predicate on the "role" field.

func RoleLT

func RoleLT(v string) predicate.Node

RoleLT applies the LT predicate on the "role" field.

func RoleLTE

func RoleLTE(v string) predicate.Node

RoleLTE applies the LTE predicate on the "role" field.

func RoleNEQ

func RoleNEQ(v string) predicate.Node

RoleNEQ applies the NEQ predicate on the "role" field.

func RoleNotIn

func RoleNotIn(vs ...string) predicate.Node

RoleNotIn applies the NotIn predicate on the "role" field.

func RoleNotNil

func RoleNotNil() predicate.Node

RoleNotNil applies the NotNil predicate on the "role" field.

func StopReason

func StopReason(v string) predicate.Node

StopReason applies equality check predicate on the "stop_reason" field. It's identical to StopReasonEQ.

func StopReasonContains

func StopReasonContains(v string) predicate.Node

StopReasonContains applies the Contains predicate on the "stop_reason" field.

func StopReasonContainsFold

func StopReasonContainsFold(v string) predicate.Node

StopReasonContainsFold applies the ContainsFold predicate on the "stop_reason" field.

func StopReasonEQ

func StopReasonEQ(v string) predicate.Node

StopReasonEQ applies the EQ predicate on the "stop_reason" field.

func StopReasonEqualFold

func StopReasonEqualFold(v string) predicate.Node

StopReasonEqualFold applies the EqualFold predicate on the "stop_reason" field.

func StopReasonGT

func StopReasonGT(v string) predicate.Node

StopReasonGT applies the GT predicate on the "stop_reason" field.

func StopReasonGTE

func StopReasonGTE(v string) predicate.Node

StopReasonGTE applies the GTE predicate on the "stop_reason" field.

func StopReasonHasPrefix

func StopReasonHasPrefix(v string) predicate.Node

StopReasonHasPrefix applies the HasPrefix predicate on the "stop_reason" field.

func StopReasonHasSuffix

func StopReasonHasSuffix(v string) predicate.Node

StopReasonHasSuffix applies the HasSuffix predicate on the "stop_reason" field.

func StopReasonIn

func StopReasonIn(vs ...string) predicate.Node

StopReasonIn applies the In predicate on the "stop_reason" field.

func StopReasonIsNil

func StopReasonIsNil() predicate.Node

StopReasonIsNil applies the IsNil predicate on the "stop_reason" field.

func StopReasonLT

func StopReasonLT(v string) predicate.Node

StopReasonLT applies the LT predicate on the "stop_reason" field.

func StopReasonLTE

func StopReasonLTE(v string) predicate.Node

StopReasonLTE applies the LTE predicate on the "stop_reason" field.

func StopReasonNEQ

func StopReasonNEQ(v string) predicate.Node

StopReasonNEQ applies the NEQ predicate on the "stop_reason" field.

func StopReasonNotIn

func StopReasonNotIn(vs ...string) predicate.Node

StopReasonNotIn applies the NotIn predicate on the "stop_reason" field.

func StopReasonNotNil

func StopReasonNotNil() predicate.Node

StopReasonNotNil applies the NotNil predicate on the "stop_reason" field.

func TotalDurationNs

func TotalDurationNs(v int64) predicate.Node

TotalDurationNs applies equality check predicate on the "total_duration_ns" field. It's identical to TotalDurationNsEQ.

func TotalDurationNsEQ

func TotalDurationNsEQ(v int64) predicate.Node

TotalDurationNsEQ applies the EQ predicate on the "total_duration_ns" field.

func TotalDurationNsGT

func TotalDurationNsGT(v int64) predicate.Node

TotalDurationNsGT applies the GT predicate on the "total_duration_ns" field.

func TotalDurationNsGTE

func TotalDurationNsGTE(v int64) predicate.Node

TotalDurationNsGTE applies the GTE predicate on the "total_duration_ns" field.

func TotalDurationNsIn

func TotalDurationNsIn(vs ...int64) predicate.Node

TotalDurationNsIn applies the In predicate on the "total_duration_ns" field.

func TotalDurationNsIsNil

func TotalDurationNsIsNil() predicate.Node

TotalDurationNsIsNil applies the IsNil predicate on the "total_duration_ns" field.

func TotalDurationNsLT

func TotalDurationNsLT(v int64) predicate.Node

TotalDurationNsLT applies the LT predicate on the "total_duration_ns" field.

func TotalDurationNsLTE

func TotalDurationNsLTE(v int64) predicate.Node

TotalDurationNsLTE applies the LTE predicate on the "total_duration_ns" field.

func TotalDurationNsNEQ

func TotalDurationNsNEQ(v int64) predicate.Node

TotalDurationNsNEQ applies the NEQ predicate on the "total_duration_ns" field.

func TotalDurationNsNotIn

func TotalDurationNsNotIn(vs ...int64) predicate.Node

TotalDurationNsNotIn applies the NotIn predicate on the "total_duration_ns" field.

func TotalDurationNsNotNil

func TotalDurationNsNotNil() predicate.Node

TotalDurationNsNotNil applies the NotNil predicate on the "total_duration_ns" field.

func TotalTokens

func TotalTokens(v int) predicate.Node

TotalTokens applies equality check predicate on the "total_tokens" field. It's identical to TotalTokensEQ.

func TotalTokensEQ

func TotalTokensEQ(v int) predicate.Node

TotalTokensEQ applies the EQ predicate on the "total_tokens" field.

func TotalTokensGT

func TotalTokensGT(v int) predicate.Node

TotalTokensGT applies the GT predicate on the "total_tokens" field.

func TotalTokensGTE

func TotalTokensGTE(v int) predicate.Node

TotalTokensGTE applies the GTE predicate on the "total_tokens" field.

func TotalTokensIn

func TotalTokensIn(vs ...int) predicate.Node

TotalTokensIn applies the In predicate on the "total_tokens" field.

func TotalTokensIsNil

func TotalTokensIsNil() predicate.Node

TotalTokensIsNil applies the IsNil predicate on the "total_tokens" field.

func TotalTokensLT

func TotalTokensLT(v int) predicate.Node

TotalTokensLT applies the LT predicate on the "total_tokens" field.

func TotalTokensLTE

func TotalTokensLTE(v int) predicate.Node

TotalTokensLTE applies the LTE predicate on the "total_tokens" field.

func TotalTokensNEQ

func TotalTokensNEQ(v int) predicate.Node

TotalTokensNEQ applies the NEQ predicate on the "total_tokens" field.

func TotalTokensNotIn

func TotalTokensNotIn(vs ...int) predicate.Node

TotalTokensNotIn applies the NotIn predicate on the "total_tokens" field.

func TotalTokensNotNil

func TotalTokensNotNil() predicate.Node

TotalTokensNotNil applies the NotNil predicate on the "total_tokens" field.

func Type

func Type(v string) predicate.Node

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.Node

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.Node

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.Node

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.Node

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.Node

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.Node

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.Node

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.Node

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.Node

TypeIn applies the In predicate on the "type" field.

func TypeIsNil

func TypeIsNil() predicate.Node

TypeIsNil applies the IsNil predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.Node

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.Node

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.Node

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.Node

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeNotNil

func TypeNotNil() predicate.Node

TypeNotNil applies the NotNil predicate on the "type" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Node queries.

func ByAgentName

func ByAgentName(opts ...sql.OrderTermOption) OrderOption

ByAgentName orders the results by the agent_name field.

func ByCacheCreationInputTokens

func ByCacheCreationInputTokens(opts ...sql.OrderTermOption) OrderOption

ByCacheCreationInputTokens orders the results by the cache_creation_input_tokens field.

func ByCacheReadInputTokens

func ByCacheReadInputTokens(opts ...sql.OrderTermOption) OrderOption

ByCacheReadInputTokens orders the results by the cache_read_input_tokens field.

func ByChildren

func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByChildren orders the results by children terms.

func ByChildrenCount

func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption

ByChildrenCount orders the results by children count.

func ByCompletionTokens

func ByCompletionTokens(opts ...sql.OrderTermOption) OrderOption

ByCompletionTokens orders the results by the completion_tokens field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByModel

func ByModel(opts ...sql.OrderTermOption) OrderOption

ByModel orders the results by the model field.

func ByParentField

func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption

ByParentField orders the results by parent field.

func ByParentHash

func ByParentHash(opts ...sql.OrderTermOption) OrderOption

ByParentHash orders the results by the parent_hash field.

func ByProject

func ByProject(opts ...sql.OrderTermOption) OrderOption

ByProject orders the results by the project field.

func ByPromptDurationNs

func ByPromptDurationNs(opts ...sql.OrderTermOption) OrderOption

ByPromptDurationNs orders the results by the prompt_duration_ns field.

func ByPromptTokens

func ByPromptTokens(opts ...sql.OrderTermOption) OrderOption

ByPromptTokens orders the results by the prompt_tokens field.

func ByProvider

func ByProvider(opts ...sql.OrderTermOption) OrderOption

ByProvider orders the results by the provider field.

func ByRole

func ByRole(opts ...sql.OrderTermOption) OrderOption

ByRole orders the results by the role field.

func ByStopReason

func ByStopReason(opts ...sql.OrderTermOption) OrderOption

ByStopReason orders the results by the stop_reason field.

func ByTotalDurationNs

func ByTotalDurationNs(opts ...sql.OrderTermOption) OrderOption

ByTotalDurationNs orders the results by the total_duration_ns field.

func ByTotalTokens

func ByTotalTokens(opts ...sql.OrderTermOption) OrderOption

ByTotalTokens orders the results by the total_tokens field.

func ByType

func ByType(opts ...sql.OrderTermOption) OrderOption

ByType orders the results by the type field.

Jump to

Keyboard shortcuts

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