Documentation
¶
Index ¶
- Constants
- Variables
- func AgentID(v uuid.UUID) predicate.Task
- func AgentIDEQ(v uuid.UUID) predicate.Task
- func AgentIDIn(vs ...uuid.UUID) predicate.Task
- func AgentIDIsNil() predicate.Task
- func AgentIDNEQ(v uuid.UUID) predicate.Task
- func AgentIDNotIn(vs ...uuid.UUID) predicate.Task
- func AgentIDNotNil() predicate.Task
- func And(predicates ...predicate.Task) predicate.Task
- func CacheReadTokens(v int64) predicate.Task
- func CacheReadTokensEQ(v int64) predicate.Task
- func CacheReadTokensGT(v int64) predicate.Task
- func CacheReadTokensGTE(v int64) predicate.Task
- func CacheReadTokensIn(vs ...int64) predicate.Task
- func CacheReadTokensIsNil() predicate.Task
- func CacheReadTokensLT(v int64) predicate.Task
- func CacheReadTokensLTE(v int64) predicate.Task
- func CacheReadTokensNEQ(v int64) predicate.Task
- func CacheReadTokensNotIn(vs ...int64) predicate.Task
- func CacheReadTokensNotNil() predicate.Task
- func CacheWriteTokens(v int64) predicate.Task
- func CacheWriteTokensEQ(v int64) predicate.Task
- func CacheWriteTokensGT(v int64) predicate.Task
- func CacheWriteTokensGTE(v int64) predicate.Task
- func CacheWriteTokensIn(vs ...int64) predicate.Task
- func CacheWriteTokensIsNil() predicate.Task
- func CacheWriteTokensLT(v int64) predicate.Task
- func CacheWriteTokensLTE(v int64) predicate.Task
- func CacheWriteTokensNEQ(v int64) predicate.Task
- func CacheWriteTokensNotIn(vs ...int64) predicate.Task
- func CacheWriteTokensNotNil() predicate.Task
- func Cost(v float64) predicate.Task
- func CostEQ(v float64) predicate.Task
- func CostGT(v float64) predicate.Task
- func CostGTE(v float64) predicate.Task
- func CostIn(vs ...float64) predicate.Task
- func CostIsNil() predicate.Task
- func CostLT(v float64) predicate.Task
- func CostLTE(v float64) predicate.Task
- func CostNEQ(v float64) predicate.Task
- func CostNotIn(vs ...float64) predicate.Task
- func CostNotNil() predicate.Task
- func CreateTime(v time.Time) predicate.Task
- func CreateTimeEQ(v time.Time) predicate.Task
- func CreateTimeGT(v time.Time) predicate.Task
- func CreateTimeGTE(v time.Time) predicate.Task
- func CreateTimeIn(vs ...time.Time) predicate.Task
- func CreateTimeLT(v time.Time) predicate.Task
- func CreateTimeLTE(v time.Time) predicate.Task
- func CreateTimeNEQ(v time.Time) predicate.Task
- func CreateTimeNotIn(vs ...time.Time) predicate.Task
- func Description(v string) predicate.Task
- func DescriptionContains(v string) predicate.Task
- func DescriptionContainsFold(v string) predicate.Task
- func DescriptionEQ(v string) predicate.Task
- func DescriptionEqualFold(v string) predicate.Task
- func DescriptionGT(v string) predicate.Task
- func DescriptionGTE(v string) predicate.Task
- func DescriptionHasPrefix(v string) predicate.Task
- func DescriptionHasSuffix(v string) predicate.Task
- func DescriptionIn(vs ...string) predicate.Task
- func DescriptionIsNil() predicate.Task
- func DescriptionLT(v string) predicate.Task
- func DescriptionLTE(v string) predicate.Task
- func DescriptionNEQ(v string) predicate.Task
- func DescriptionNotIn(vs ...string) predicate.Task
- func DescriptionNotNil() predicate.Task
- func DesiredPhaseEQ(v types.TaskPhase) predicate.Task
- func DesiredPhaseIn(vs ...types.TaskPhase) predicate.Task
- func DesiredPhaseNEQ(v types.TaskPhase) predicate.Task
- func DesiredPhaseNotIn(vs ...types.TaskPhase) predicate.Task
- func DesiredPhaseValidator(dp types.TaskPhase) error
- func HasAgent() predicate.Task
- func HasAgentWith(preds ...predicate.Agent) predicate.Task
- func HasMessages() predicate.Task
- func HasMessagesWith(preds ...predicate.Message) predicate.Task
- func ID(id uuid.UUID) predicate.Task
- func IDEQ(id uuid.UUID) predicate.Task
- func IDGT(id uuid.UUID) predicate.Task
- func IDGTE(id uuid.UUID) predicate.Task
- func IDIn(ids ...uuid.UUID) predicate.Task
- func IDLT(id uuid.UUID) predicate.Task
- func IDLTE(id uuid.UUID) predicate.Task
- func IDNEQ(id uuid.UUID) predicate.Task
- func IDNotIn(ids ...uuid.UUID) predicate.Task
- func InputTokens(v int64) predicate.Task
- func InputTokensEQ(v int64) predicate.Task
- func InputTokensGT(v int64) predicate.Task
- func InputTokensGTE(v int64) predicate.Task
- func InputTokensIn(vs ...int64) predicate.Task
- func InputTokensIsNil() predicate.Task
- func InputTokensLT(v int64) predicate.Task
- func InputTokensLTE(v int64) predicate.Task
- func InputTokensNEQ(v int64) predicate.Task
- func InputTokensNotIn(vs ...int64) predicate.Task
- func InputTokensNotNil() predicate.Task
- func Not(p predicate.Task) predicate.Task
- func Or(predicates ...predicate.Task) predicate.Task
- func OutputTokens(v int64) predicate.Task
- func OutputTokensEQ(v int64) predicate.Task
- func OutputTokensGT(v int64) predicate.Task
- func OutputTokensGTE(v int64) predicate.Task
- func OutputTokensIn(vs ...int64) predicate.Task
- func OutputTokensIsNil() predicate.Task
- func OutputTokensLT(v int64) predicate.Task
- func OutputTokensLTE(v int64) predicate.Task
- func OutputTokensNEQ(v int64) predicate.Task
- func OutputTokensNotIn(vs ...int64) predicate.Task
- func OutputTokensNotNil() predicate.Task
- func PhaseEQ(v types.TaskPhase) predicate.Task
- func PhaseIn(vs ...types.TaskPhase) predicate.Task
- func PhaseNEQ(v types.TaskPhase) predicate.Task
- func PhaseNotIn(vs ...types.TaskPhase) predicate.Task
- func PhaseValidator(ph types.TaskPhase) error
- func ProjectDirectory(v string) predicate.Task
- func ProjectDirectoryContains(v string) predicate.Task
- func ProjectDirectoryContainsFold(v string) predicate.Task
- func ProjectDirectoryEQ(v string) predicate.Task
- func ProjectDirectoryEqualFold(v string) predicate.Task
- func ProjectDirectoryGT(v string) predicate.Task
- func ProjectDirectoryGTE(v string) predicate.Task
- func ProjectDirectoryHasPrefix(v string) predicate.Task
- func ProjectDirectoryHasSuffix(v string) predicate.Task
- func ProjectDirectoryIn(vs ...string) predicate.Task
- func ProjectDirectoryIsNil() predicate.Task
- func ProjectDirectoryLT(v string) predicate.Task
- func ProjectDirectoryLTE(v string) predicate.Task
- func ProjectDirectoryNEQ(v string) predicate.Task
- func ProjectDirectoryNotIn(vs ...string) predicate.Task
- func ProjectDirectoryNotNil() predicate.Task
- func Turns(v int64) predicate.Task
- func TurnsEQ(v int64) predicate.Task
- func TurnsGT(v int64) predicate.Task
- func TurnsGTE(v int64) predicate.Task
- func TurnsIn(vs ...int64) predicate.Task
- func TurnsLT(v int64) predicate.Task
- func TurnsLTE(v int64) predicate.Task
- func TurnsNEQ(v int64) predicate.Task
- func TurnsNotIn(vs ...int64) predicate.Task
- func UpdateTime(v time.Time) predicate.Task
- func UpdateTimeEQ(v time.Time) predicate.Task
- func UpdateTimeGT(v time.Time) predicate.Task
- func UpdateTimeGTE(v time.Time) predicate.Task
- func UpdateTimeIn(vs ...time.Time) predicate.Task
- func UpdateTimeLT(v time.Time) predicate.Task
- func UpdateTimeLTE(v time.Time) predicate.Task
- func UpdateTimeNEQ(v time.Time) predicate.Task
- func UpdateTimeNotIn(vs ...time.Time) predicate.Task
- func ValidColumn(column string) bool
- type OrderOption
- func ByAgentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAgentID(opts ...sql.OrderTermOption) OrderOption
- func ByCacheReadTokens(opts ...sql.OrderTermOption) OrderOption
- func ByCacheWriteTokens(opts ...sql.OrderTermOption) OrderOption
- func ByCost(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByDesiredPhase(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInputTokens(opts ...sql.OrderTermOption) OrderOption
- func ByMessages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMessagesCount(opts ...sql.OrderTermOption) OrderOption
- func ByOutputTokens(opts ...sql.OrderTermOption) OrderOption
- func ByPhase(opts ...sql.OrderTermOption) OrderOption
- func ByProjectDirectory(opts ...sql.OrderTermOption) OrderOption
- func ByTurns(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" )
const DefaultDesiredPhase types.TaskPhase = "running"
const DefaultPhase types.TaskPhase = "awaiting"
Variables ¶
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 )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldProjectDirectory, FieldInputTokens, FieldOutputTokens, FieldCacheWriteTokens, FieldCacheReadTokens, FieldCost, FieldTurns, FieldToolUses, FieldDesiredPhase, FieldPhase, FieldDescription, FieldAgentID, }
Columns holds all SQL columns for task fields.
Functions ¶
func AgentID ¶
AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
func AgentIDIsNil ¶
AgentIDIsNil applies the IsNil predicate on the "agent_id" field.
func AgentIDNEQ ¶
AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
func AgentIDNotIn ¶
AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
func AgentIDNotNil ¶
AgentIDNotNil applies the NotNil predicate on the "agent_id" field.
func CacheReadTokens ¶
CacheReadTokens applies equality check predicate on the "cache_read_tokens" field. It's identical to CacheReadTokensEQ.
func CacheReadTokensEQ ¶
CacheReadTokensEQ applies the EQ predicate on the "cache_read_tokens" field.
func CacheReadTokensGT ¶
CacheReadTokensGT applies the GT predicate on the "cache_read_tokens" field.
func CacheReadTokensGTE ¶
CacheReadTokensGTE applies the GTE predicate on the "cache_read_tokens" field.
func CacheReadTokensIn ¶
CacheReadTokensIn applies the In predicate on the "cache_read_tokens" field.
func CacheReadTokensIsNil ¶
CacheReadTokensIsNil applies the IsNil predicate on the "cache_read_tokens" field.
func CacheReadTokensLT ¶
CacheReadTokensLT applies the LT predicate on the "cache_read_tokens" field.
func CacheReadTokensLTE ¶
CacheReadTokensLTE applies the LTE predicate on the "cache_read_tokens" field.
func CacheReadTokensNEQ ¶
CacheReadTokensNEQ applies the NEQ predicate on the "cache_read_tokens" field.
func CacheReadTokensNotIn ¶
CacheReadTokensNotIn applies the NotIn predicate on the "cache_read_tokens" field.
func CacheReadTokensNotNil ¶
CacheReadTokensNotNil applies the NotNil predicate on the "cache_read_tokens" field.
func CacheWriteTokens ¶
CacheWriteTokens applies equality check predicate on the "cache_write_tokens" field. It's identical to CacheWriteTokensEQ.
func CacheWriteTokensEQ ¶
CacheWriteTokensEQ applies the EQ predicate on the "cache_write_tokens" field.
func CacheWriteTokensGT ¶
CacheWriteTokensGT applies the GT predicate on the "cache_write_tokens" field.
func CacheWriteTokensGTE ¶
CacheWriteTokensGTE applies the GTE predicate on the "cache_write_tokens" field.
func CacheWriteTokensIn ¶
CacheWriteTokensIn applies the In predicate on the "cache_write_tokens" field.
func CacheWriteTokensIsNil ¶
CacheWriteTokensIsNil applies the IsNil predicate on the "cache_write_tokens" field.
func CacheWriteTokensLT ¶
CacheWriteTokensLT applies the LT predicate on the "cache_write_tokens" field.
func CacheWriteTokensLTE ¶
CacheWriteTokensLTE applies the LTE predicate on the "cache_write_tokens" field.
func CacheWriteTokensNEQ ¶
CacheWriteTokensNEQ applies the NEQ predicate on the "cache_write_tokens" field.
func CacheWriteTokensNotIn ¶
CacheWriteTokensNotIn applies the NotIn predicate on the "cache_write_tokens" field.
func CacheWriteTokensNotNil ¶
CacheWriteTokensNotNil applies the NotNil predicate on the "cache_write_tokens" field.
func CostNotNil ¶
CostNotNil applies the NotNil predicate on the "cost" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func DesiredPhaseEQ ¶
DesiredPhaseEQ applies the EQ predicate on the "desired_phase" field.
func DesiredPhaseIn ¶
DesiredPhaseIn applies the In predicate on the "desired_phase" field.
func DesiredPhaseNEQ ¶
DesiredPhaseNEQ applies the NEQ predicate on the "desired_phase" field.
func DesiredPhaseNotIn ¶
DesiredPhaseNotIn applies the NotIn predicate on the "desired_phase" field.
func DesiredPhaseValidator ¶
DesiredPhaseValidator is a validator for the "desired_phase" field enum values. It is called by the builders before save.
func HasAgentWith ¶
HasAgentWith applies the HasEdge predicate on the "agent" edge with a given conditions (other predicates).
func HasMessages ¶
HasMessages applies the HasEdge predicate on the "messages" edge.
func HasMessagesWith ¶
HasMessagesWith applies the HasEdge predicate on the "messages" edge with a given conditions (other predicates).
func InputTokens ¶
InputTokens applies equality check predicate on the "input_tokens" field. It's identical to InputTokensEQ.
func InputTokensEQ ¶
InputTokensEQ applies the EQ predicate on the "input_tokens" field.
func InputTokensGT ¶
InputTokensGT applies the GT predicate on the "input_tokens" field.
func InputTokensGTE ¶
InputTokensGTE applies the GTE predicate on the "input_tokens" field.
func InputTokensIn ¶
InputTokensIn applies the In predicate on the "input_tokens" field.
func InputTokensIsNil ¶
InputTokensIsNil applies the IsNil predicate on the "input_tokens" field.
func InputTokensLT ¶
InputTokensLT applies the LT predicate on the "input_tokens" field.
func InputTokensLTE ¶
InputTokensLTE applies the LTE predicate on the "input_tokens" field.
func InputTokensNEQ ¶
InputTokensNEQ applies the NEQ predicate on the "input_tokens" field.
func InputTokensNotIn ¶
InputTokensNotIn applies the NotIn predicate on the "input_tokens" field.
func InputTokensNotNil ¶
InputTokensNotNil applies the NotNil predicate on the "input_tokens" field.
func OutputTokens ¶
OutputTokens applies equality check predicate on the "output_tokens" field. It's identical to OutputTokensEQ.
func OutputTokensEQ ¶
OutputTokensEQ applies the EQ predicate on the "output_tokens" field.
func OutputTokensGT ¶
OutputTokensGT applies the GT predicate on the "output_tokens" field.
func OutputTokensGTE ¶
OutputTokensGTE applies the GTE predicate on the "output_tokens" field.
func OutputTokensIn ¶
OutputTokensIn applies the In predicate on the "output_tokens" field.
func OutputTokensIsNil ¶
OutputTokensIsNil applies the IsNil predicate on the "output_tokens" field.
func OutputTokensLT ¶
OutputTokensLT applies the LT predicate on the "output_tokens" field.
func OutputTokensLTE ¶
OutputTokensLTE applies the LTE predicate on the "output_tokens" field.
func OutputTokensNEQ ¶
OutputTokensNEQ applies the NEQ predicate on the "output_tokens" field.
func OutputTokensNotIn ¶
OutputTokensNotIn applies the NotIn predicate on the "output_tokens" field.
func OutputTokensNotNil ¶
OutputTokensNotNil applies the NotNil predicate on the "output_tokens" field.
func PhaseNotIn ¶
PhaseNotIn applies the NotIn predicate on the "phase" field.
func PhaseValidator ¶
PhaseValidator is a validator for the "phase" field enum values. It is called by the builders before save.
func ProjectDirectory ¶
ProjectDirectory applies equality check predicate on the "project_directory" field. It's identical to ProjectDirectoryEQ.
func ProjectDirectoryContains ¶
ProjectDirectoryContains applies the Contains predicate on the "project_directory" field.
func ProjectDirectoryContainsFold ¶
ProjectDirectoryContainsFold applies the ContainsFold predicate on the "project_directory" field.
func ProjectDirectoryEQ ¶
ProjectDirectoryEQ applies the EQ predicate on the "project_directory" field.
func ProjectDirectoryEqualFold ¶
ProjectDirectoryEqualFold applies the EqualFold predicate on the "project_directory" field.
func ProjectDirectoryGT ¶
ProjectDirectoryGT applies the GT predicate on the "project_directory" field.
func ProjectDirectoryGTE ¶
ProjectDirectoryGTE applies the GTE predicate on the "project_directory" field.
func ProjectDirectoryHasPrefix ¶
ProjectDirectoryHasPrefix applies the HasPrefix predicate on the "project_directory" field.
func ProjectDirectoryHasSuffix ¶
ProjectDirectoryHasSuffix applies the HasSuffix predicate on the "project_directory" field.
func ProjectDirectoryIn ¶
ProjectDirectoryIn applies the In predicate on the "project_directory" field.
func ProjectDirectoryIsNil ¶
ProjectDirectoryIsNil applies the IsNil predicate on the "project_directory" field.
func ProjectDirectoryLT ¶
ProjectDirectoryLT applies the LT predicate on the "project_directory" field.
func ProjectDirectoryLTE ¶
ProjectDirectoryLTE applies the LTE predicate on the "project_directory" field.
func ProjectDirectoryNEQ ¶
ProjectDirectoryNEQ applies the NEQ predicate on the "project_directory" field.
func ProjectDirectoryNotIn ¶
ProjectDirectoryNotIn applies the NotIn predicate on the "project_directory" field.
func ProjectDirectoryNotNil ¶
ProjectDirectoryNotNil applies the NotNil predicate on the "project_directory" field.
func Turns ¶
Turns applies equality check predicate on the "turns" field. It's identical to TurnsEQ.
func TurnsNotIn ¶
TurnsNotIn applies the NotIn predicate on the "turns" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.