task

package
v0.0.0-...-4b2b8ef Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the task type in the database.
	Label = "task"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldProjectDirectory holds the string denoting the project_directory field in the database.
	FieldProjectDirectory = "project_directory"
	// FieldInputTokens holds the string denoting the input_tokens field in the database.
	FieldInputTokens = "input_tokens"
	// FieldOutputTokens holds the string denoting the output_tokens field in the database.
	FieldOutputTokens = "output_tokens"
	// FieldCacheWriteTokens holds the string denoting the cache_write_tokens field in the database.
	FieldCacheWriteTokens = "cache_write_tokens"
	// FieldCacheReadTokens holds the string denoting the cache_read_tokens field in the database.
	FieldCacheReadTokens = "cache_read_tokens"
	// FieldCost holds the string denoting the cost field in the database.
	FieldCost = "cost"
	// FieldTurns holds the string denoting the turns field in the database.
	FieldTurns = "turns"
	// FieldToolUses holds the string denoting the tool_uses field in the database.
	FieldToolUses = "tool_uses"
	// FieldDesiredPhase holds the string denoting the desired_phase field in the database.
	FieldDesiredPhase = "desired_phase"
	// FieldPhase holds the string denoting the phase field in the database.
	FieldPhase = "phase"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldAgentID holds the string denoting the agent_id field in the database.
	FieldAgentID = "agent_id"
	// EdgeMessages holds the string denoting the messages edge name in mutations.
	EdgeMessages = "messages"
	// EdgeAgent holds the string denoting the agent edge name in mutations.
	EdgeAgent = "agent"
	// Table holds the table name of the task in the database.
	Table = "tasks"
	// MessagesTable is the table that holds the messages relation/edge.
	MessagesTable = "messages"
	// MessagesInverseTable is the table name for the Message entity.
	// It exists in this package in order to avoid circular dependency with the "message" package.
	MessagesInverseTable = "messages"
	// MessagesColumn is the table column denoting the messages relation/edge.
	MessagesColumn = "task_id"
	// AgentTable is the table that holds the agent relation/edge.
	AgentTable = "tasks"
	// AgentInverseTable is the table name for the Agent entity.
	// It exists in this package in order to avoid circular dependency with the "agent" package.
	AgentInverseTable = "agents"
	// AgentColumn is the table column denoting the agent relation/edge.
	AgentColumn = "agent_id"
)
View Source
const DefaultDesiredPhase types.TaskPhase = "running"
View Source
const DefaultPhase types.TaskPhase = "awaiting"

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
	// DefaultTurns holds the default value on creation for the "turns" field.
	DefaultTurns int64
	// DefaultToolUses holds the default value on creation for the "tool_uses" field.
	DefaultToolUses map[string]int64
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for task fields.

Functions

func AgentID

func AgentID(v uuid.UUID) predicate.Task

AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.

func AgentIDEQ

func AgentIDEQ(v uuid.UUID) predicate.Task

AgentIDEQ applies the EQ predicate on the "agent_id" field.

func AgentIDIn

func AgentIDIn(vs ...uuid.UUID) predicate.Task

AgentIDIn applies the In predicate on the "agent_id" field.

func AgentIDIsNil

func AgentIDIsNil() predicate.Task

AgentIDIsNil applies the IsNil predicate on the "agent_id" field.

func AgentIDNEQ

func AgentIDNEQ(v uuid.UUID) predicate.Task

AgentIDNEQ applies the NEQ predicate on the "agent_id" field.

func AgentIDNotIn

func AgentIDNotIn(vs ...uuid.UUID) predicate.Task

AgentIDNotIn applies the NotIn predicate on the "agent_id" field.

func AgentIDNotNil

func AgentIDNotNil() predicate.Task

AgentIDNotNil applies the NotNil predicate on the "agent_id" field.

func And

func And(predicates ...predicate.Task) predicate.Task

And groups predicates with the AND operator between them.

func CacheReadTokens

func CacheReadTokens(v int64) predicate.Task

CacheReadTokens applies equality check predicate on the "cache_read_tokens" field. It's identical to CacheReadTokensEQ.

func CacheReadTokensEQ

func CacheReadTokensEQ(v int64) predicate.Task

CacheReadTokensEQ applies the EQ predicate on the "cache_read_tokens" field.

func CacheReadTokensGT

func CacheReadTokensGT(v int64) predicate.Task

CacheReadTokensGT applies the GT predicate on the "cache_read_tokens" field.

func CacheReadTokensGTE

func CacheReadTokensGTE(v int64) predicate.Task

CacheReadTokensGTE applies the GTE predicate on the "cache_read_tokens" field.

func CacheReadTokensIn

func CacheReadTokensIn(vs ...int64) predicate.Task

CacheReadTokensIn applies the In predicate on the "cache_read_tokens" field.

func CacheReadTokensIsNil

func CacheReadTokensIsNil() predicate.Task

CacheReadTokensIsNil applies the IsNil predicate on the "cache_read_tokens" field.

func CacheReadTokensLT

func CacheReadTokensLT(v int64) predicate.Task

CacheReadTokensLT applies the LT predicate on the "cache_read_tokens" field.

func CacheReadTokensLTE

func CacheReadTokensLTE(v int64) predicate.Task

CacheReadTokensLTE applies the LTE predicate on the "cache_read_tokens" field.

func CacheReadTokensNEQ

func CacheReadTokensNEQ(v int64) predicate.Task

CacheReadTokensNEQ applies the NEQ predicate on the "cache_read_tokens" field.

func CacheReadTokensNotIn

func CacheReadTokensNotIn(vs ...int64) predicate.Task

CacheReadTokensNotIn applies the NotIn predicate on the "cache_read_tokens" field.

func CacheReadTokensNotNil

func CacheReadTokensNotNil() predicate.Task

CacheReadTokensNotNil applies the NotNil predicate on the "cache_read_tokens" field.

func CacheWriteTokens

func CacheWriteTokens(v int64) predicate.Task

CacheWriteTokens applies equality check predicate on the "cache_write_tokens" field. It's identical to CacheWriteTokensEQ.

func CacheWriteTokensEQ

func CacheWriteTokensEQ(v int64) predicate.Task

CacheWriteTokensEQ applies the EQ predicate on the "cache_write_tokens" field.

func CacheWriteTokensGT

func CacheWriteTokensGT(v int64) predicate.Task

CacheWriteTokensGT applies the GT predicate on the "cache_write_tokens" field.

func CacheWriteTokensGTE

func CacheWriteTokensGTE(v int64) predicate.Task

CacheWriteTokensGTE applies the GTE predicate on the "cache_write_tokens" field.

func CacheWriteTokensIn

func CacheWriteTokensIn(vs ...int64) predicate.Task

CacheWriteTokensIn applies the In predicate on the "cache_write_tokens" field.

func CacheWriteTokensIsNil

func CacheWriteTokensIsNil() predicate.Task

CacheWriteTokensIsNil applies the IsNil predicate on the "cache_write_tokens" field.

func CacheWriteTokensLT

func CacheWriteTokensLT(v int64) predicate.Task

CacheWriteTokensLT applies the LT predicate on the "cache_write_tokens" field.

func CacheWriteTokensLTE

func CacheWriteTokensLTE(v int64) predicate.Task

CacheWriteTokensLTE applies the LTE predicate on the "cache_write_tokens" field.

func CacheWriteTokensNEQ

func CacheWriteTokensNEQ(v int64) predicate.Task

CacheWriteTokensNEQ applies the NEQ predicate on the "cache_write_tokens" field.

func CacheWriteTokensNotIn

func CacheWriteTokensNotIn(vs ...int64) predicate.Task

CacheWriteTokensNotIn applies the NotIn predicate on the "cache_write_tokens" field.

func CacheWriteTokensNotNil

func CacheWriteTokensNotNil() predicate.Task

CacheWriteTokensNotNil applies the NotNil predicate on the "cache_write_tokens" field.

func Cost

func Cost(v float64) predicate.Task

Cost applies equality check predicate on the "cost" field. It's identical to CostEQ.

func CostEQ

func CostEQ(v float64) predicate.Task

CostEQ applies the EQ predicate on the "cost" field.

func CostGT

func CostGT(v float64) predicate.Task

CostGT applies the GT predicate on the "cost" field.

func CostGTE

func CostGTE(v float64) predicate.Task

CostGTE applies the GTE predicate on the "cost" field.

func CostIn

func CostIn(vs ...float64) predicate.Task

CostIn applies the In predicate on the "cost" field.

func CostIsNil

func CostIsNil() predicate.Task

CostIsNil applies the IsNil predicate on the "cost" field.

func CostLT

func CostLT(v float64) predicate.Task

CostLT applies the LT predicate on the "cost" field.

func CostLTE

func CostLTE(v float64) predicate.Task

CostLTE applies the LTE predicate on the "cost" field.

func CostNEQ

func CostNEQ(v float64) predicate.Task

CostNEQ applies the NEQ predicate on the "cost" field.

func CostNotIn

func CostNotIn(vs ...float64) predicate.Task

CostNotIn applies the NotIn predicate on the "cost" field.

func CostNotNil

func CostNotNil() predicate.Task

CostNotNil applies the NotNil predicate on the "cost" field.

func CreateTime

func CreateTime(v time.Time) predicate.Task

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Task

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Task

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Task

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Task

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Task

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Task

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Task

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Task

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func Description

func Description(v string) predicate.Task

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Task

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Task

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Task

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Task

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Task

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Task

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Task

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Task

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Task

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Task

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Task

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Task

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Task

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Task

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Task

DescriptionNotNil applies the NotNil predicate on the "description" field.

func DesiredPhaseEQ

func DesiredPhaseEQ(v types.TaskPhase) predicate.Task

DesiredPhaseEQ applies the EQ predicate on the "desired_phase" field.

func DesiredPhaseIn

func DesiredPhaseIn(vs ...types.TaskPhase) predicate.Task

DesiredPhaseIn applies the In predicate on the "desired_phase" field.

func DesiredPhaseNEQ

func DesiredPhaseNEQ(v types.TaskPhase) predicate.Task

DesiredPhaseNEQ applies the NEQ predicate on the "desired_phase" field.

func DesiredPhaseNotIn

func DesiredPhaseNotIn(vs ...types.TaskPhase) predicate.Task

DesiredPhaseNotIn applies the NotIn predicate on the "desired_phase" field.

func DesiredPhaseValidator

func DesiredPhaseValidator(dp types.TaskPhase) error

DesiredPhaseValidator is a validator for the "desired_phase" field enum values. It is called by the builders before save.

func HasAgent

func HasAgent() predicate.Task

HasAgent applies the HasEdge predicate on the "agent" edge.

func HasAgentWith

func HasAgentWith(preds ...predicate.Agent) predicate.Task

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

func HasMessages

func HasMessages() predicate.Task

HasMessages applies the HasEdge predicate on the "messages" edge.

func HasMessagesWith

func HasMessagesWith(preds ...predicate.Message) predicate.Task

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

func ID

func ID(id uuid.UUID) predicate.Task

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Task

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Task

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Task

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Task

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Task

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Task

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Task

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Task

IDNotIn applies the NotIn predicate on the ID field.

func InputTokens

func InputTokens(v int64) predicate.Task

InputTokens applies equality check predicate on the "input_tokens" field. It's identical to InputTokensEQ.

func InputTokensEQ

func InputTokensEQ(v int64) predicate.Task

InputTokensEQ applies the EQ predicate on the "input_tokens" field.

func InputTokensGT

func InputTokensGT(v int64) predicate.Task

InputTokensGT applies the GT predicate on the "input_tokens" field.

func InputTokensGTE

func InputTokensGTE(v int64) predicate.Task

InputTokensGTE applies the GTE predicate on the "input_tokens" field.

func InputTokensIn

func InputTokensIn(vs ...int64) predicate.Task

InputTokensIn applies the In predicate on the "input_tokens" field.

func InputTokensIsNil

func InputTokensIsNil() predicate.Task

InputTokensIsNil applies the IsNil predicate on the "input_tokens" field.

func InputTokensLT

func InputTokensLT(v int64) predicate.Task

InputTokensLT applies the LT predicate on the "input_tokens" field.

func InputTokensLTE

func InputTokensLTE(v int64) predicate.Task

InputTokensLTE applies the LTE predicate on the "input_tokens" field.

func InputTokensNEQ

func InputTokensNEQ(v int64) predicate.Task

InputTokensNEQ applies the NEQ predicate on the "input_tokens" field.

func InputTokensNotIn

func InputTokensNotIn(vs ...int64) predicate.Task

InputTokensNotIn applies the NotIn predicate on the "input_tokens" field.

func InputTokensNotNil

func InputTokensNotNil() predicate.Task

InputTokensNotNil applies the NotNil predicate on the "input_tokens" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Task) predicate.Task

Or groups predicates with the OR operator between them.

func OutputTokens

func OutputTokens(v int64) predicate.Task

OutputTokens applies equality check predicate on the "output_tokens" field. It's identical to OutputTokensEQ.

func OutputTokensEQ

func OutputTokensEQ(v int64) predicate.Task

OutputTokensEQ applies the EQ predicate on the "output_tokens" field.

func OutputTokensGT

func OutputTokensGT(v int64) predicate.Task

OutputTokensGT applies the GT predicate on the "output_tokens" field.

func OutputTokensGTE

func OutputTokensGTE(v int64) predicate.Task

OutputTokensGTE applies the GTE predicate on the "output_tokens" field.

func OutputTokensIn

func OutputTokensIn(vs ...int64) predicate.Task

OutputTokensIn applies the In predicate on the "output_tokens" field.

func OutputTokensIsNil

func OutputTokensIsNil() predicate.Task

OutputTokensIsNil applies the IsNil predicate on the "output_tokens" field.

func OutputTokensLT

func OutputTokensLT(v int64) predicate.Task

OutputTokensLT applies the LT predicate on the "output_tokens" field.

func OutputTokensLTE

func OutputTokensLTE(v int64) predicate.Task

OutputTokensLTE applies the LTE predicate on the "output_tokens" field.

func OutputTokensNEQ

func OutputTokensNEQ(v int64) predicate.Task

OutputTokensNEQ applies the NEQ predicate on the "output_tokens" field.

func OutputTokensNotIn

func OutputTokensNotIn(vs ...int64) predicate.Task

OutputTokensNotIn applies the NotIn predicate on the "output_tokens" field.

func OutputTokensNotNil

func OutputTokensNotNil() predicate.Task

OutputTokensNotNil applies the NotNil predicate on the "output_tokens" field.

func PhaseEQ

func PhaseEQ(v types.TaskPhase) predicate.Task

PhaseEQ applies the EQ predicate on the "phase" field.

func PhaseIn

func PhaseIn(vs ...types.TaskPhase) predicate.Task

PhaseIn applies the In predicate on the "phase" field.

func PhaseNEQ

func PhaseNEQ(v types.TaskPhase) predicate.Task

PhaseNEQ applies the NEQ predicate on the "phase" field.

func PhaseNotIn

func PhaseNotIn(vs ...types.TaskPhase) predicate.Task

PhaseNotIn applies the NotIn predicate on the "phase" field.

func PhaseValidator

func PhaseValidator(ph types.TaskPhase) error

PhaseValidator is a validator for the "phase" field enum values. It is called by the builders before save.

func ProjectDirectory

func ProjectDirectory(v string) predicate.Task

ProjectDirectory applies equality check predicate on the "project_directory" field. It's identical to ProjectDirectoryEQ.

func ProjectDirectoryContains

func ProjectDirectoryContains(v string) predicate.Task

ProjectDirectoryContains applies the Contains predicate on the "project_directory" field.

func ProjectDirectoryContainsFold

func ProjectDirectoryContainsFold(v string) predicate.Task

ProjectDirectoryContainsFold applies the ContainsFold predicate on the "project_directory" field.

func ProjectDirectoryEQ

func ProjectDirectoryEQ(v string) predicate.Task

ProjectDirectoryEQ applies the EQ predicate on the "project_directory" field.

func ProjectDirectoryEqualFold

func ProjectDirectoryEqualFold(v string) predicate.Task

ProjectDirectoryEqualFold applies the EqualFold predicate on the "project_directory" field.

func ProjectDirectoryGT

func ProjectDirectoryGT(v string) predicate.Task

ProjectDirectoryGT applies the GT predicate on the "project_directory" field.

func ProjectDirectoryGTE

func ProjectDirectoryGTE(v string) predicate.Task

ProjectDirectoryGTE applies the GTE predicate on the "project_directory" field.

func ProjectDirectoryHasPrefix

func ProjectDirectoryHasPrefix(v string) predicate.Task

ProjectDirectoryHasPrefix applies the HasPrefix predicate on the "project_directory" field.

func ProjectDirectoryHasSuffix

func ProjectDirectoryHasSuffix(v string) predicate.Task

ProjectDirectoryHasSuffix applies the HasSuffix predicate on the "project_directory" field.

func ProjectDirectoryIn

func ProjectDirectoryIn(vs ...string) predicate.Task

ProjectDirectoryIn applies the In predicate on the "project_directory" field.

func ProjectDirectoryIsNil

func ProjectDirectoryIsNil() predicate.Task

ProjectDirectoryIsNil applies the IsNil predicate on the "project_directory" field.

func ProjectDirectoryLT

func ProjectDirectoryLT(v string) predicate.Task

ProjectDirectoryLT applies the LT predicate on the "project_directory" field.

func ProjectDirectoryLTE

func ProjectDirectoryLTE(v string) predicate.Task

ProjectDirectoryLTE applies the LTE predicate on the "project_directory" field.

func ProjectDirectoryNEQ

func ProjectDirectoryNEQ(v string) predicate.Task

ProjectDirectoryNEQ applies the NEQ predicate on the "project_directory" field.

func ProjectDirectoryNotIn

func ProjectDirectoryNotIn(vs ...string) predicate.Task

ProjectDirectoryNotIn applies the NotIn predicate on the "project_directory" field.

func ProjectDirectoryNotNil

func ProjectDirectoryNotNil() predicate.Task

ProjectDirectoryNotNil applies the NotNil predicate on the "project_directory" field.

func Turns

func Turns(v int64) predicate.Task

Turns applies equality check predicate on the "turns" field. It's identical to TurnsEQ.

func TurnsEQ

func TurnsEQ(v int64) predicate.Task

TurnsEQ applies the EQ predicate on the "turns" field.

func TurnsGT

func TurnsGT(v int64) predicate.Task

TurnsGT applies the GT predicate on the "turns" field.

func TurnsGTE

func TurnsGTE(v int64) predicate.Task

TurnsGTE applies the GTE predicate on the "turns" field.

func TurnsIn

func TurnsIn(vs ...int64) predicate.Task

TurnsIn applies the In predicate on the "turns" field.

func TurnsLT

func TurnsLT(v int64) predicate.Task

TurnsLT applies the LT predicate on the "turns" field.

func TurnsLTE

func TurnsLTE(v int64) predicate.Task

TurnsLTE applies the LTE predicate on the "turns" field.

func TurnsNEQ

func TurnsNEQ(v int64) predicate.Task

TurnsNEQ applies the NEQ predicate on the "turns" field.

func TurnsNotIn

func TurnsNotIn(vs ...int64) predicate.Task

TurnsNotIn applies the NotIn predicate on the "turns" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Task

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Task

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Task

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Task

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Task

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Task

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Task

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Task

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Task

UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 Task queries.

func ByAgentField

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

ByAgentField orders the results by agent field.

func ByAgentID

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

ByAgentID orders the results by the agent_id field.

func ByCacheReadTokens

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

ByCacheReadTokens orders the results by the cache_read_tokens field.

func ByCacheWriteTokens

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

ByCacheWriteTokens orders the results by the cache_write_tokens field.

func ByCost

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

ByCost orders the results by the cost field.

func ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByDesiredPhase

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

ByDesiredPhase orders the results by the desired_phase field.

func ByID

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

ByID orders the results by the id field.

func ByInputTokens

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

ByInputTokens orders the results by the input_tokens field.

func ByMessages

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

ByMessages orders the results by messages terms.

func ByMessagesCount

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

ByMessagesCount orders the results by messages count.

func ByOutputTokens

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

ByOutputTokens orders the results by the output_tokens field.

func ByPhase

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

ByPhase orders the results by the phase field.

func ByProjectDirectory

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

ByProjectDirectory orders the results by the project_directory field.

func ByTurns

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

ByTurns orders the results by the turns field.

func ByUpdateTime

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

ByUpdateTime orders the results by the update_time field.

Jump to

Keyboard shortcuts

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