agent

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the agent type in the database.
	Label = "agent"
	// 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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldInstructions holds the string denoting the instructions field in the database.
	FieldInstructions = "instructions"
	// FieldBuiltin holds the string denoting the builtin field in the database.
	FieldBuiltin = "builtin"
	// FieldModelID holds the string denoting the model_id field in the database.
	FieldModelID = "model_id"
	// EdgeModel holds the string denoting the model edge name in mutations.
	EdgeModel = "model"
	// EdgeTasks holds the string denoting the tasks edge name in mutations.
	EdgeTasks = "tasks"
	// EdgeMessages holds the string denoting the messages edge name in mutations.
	EdgeMessages = "messages"
	// Table holds the table name of the agent in the database.
	Table = "agents"
	// ModelTable is the table that holds the model relation/edge.
	ModelTable = "agents"
	// ModelInverseTable is the table name for the Model entity.
	// It exists in this package in order to avoid circular dependency with the "model" package.
	ModelInverseTable = "models"
	// ModelColumn is the table column denoting the model relation/edge.
	ModelColumn = "model_id"
	// TasksTable is the table that holds the tasks relation/edge.
	TasksTable = "tasks"
	// TasksInverseTable is the table name for the Task entity.
	// It exists in this package in order to avoid circular dependency with the "task" package.
	TasksInverseTable = "tasks"
	// TasksColumn is the table column denoting the tasks relation/edge.
	TasksColumn = "agent_id"
	// 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 = "agent_id"
)

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
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultBuiltin holds the default value on creation for the "builtin" field.
	DefaultBuiltin bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for agent fields.

Functions

func And

func And(predicates ...predicate.Agent) predicate.Agent

And groups predicates with the AND operator between them.

func Builtin

func Builtin(v bool) predicate.Agent

Builtin applies equality check predicate on the "builtin" field. It's identical to BuiltinEQ.

func BuiltinEQ

func BuiltinEQ(v bool) predicate.Agent

BuiltinEQ applies the EQ predicate on the "builtin" field.

func BuiltinNEQ

func BuiltinNEQ(v bool) predicate.Agent

BuiltinNEQ applies the NEQ predicate on the "builtin" field.

func CreateTime

func CreateTime(v time.Time) predicate.Agent

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Agent

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Agent

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Agent

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Agent

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Agent

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Agent

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

func CreateTimeNotIn

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

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

func Description

func Description(v string) predicate.Agent

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

func DescriptionContains

func DescriptionContains(v string) predicate.Agent

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Agent

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Agent

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Agent

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

func DescriptionGT

func DescriptionGT(v string) predicate.Agent

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Agent

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Agent

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Agent

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.Agent

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

func DescriptionLT

func DescriptionLT(v string) predicate.Agent

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Agent

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Agent

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.Agent

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

func HasMessages

func HasMessages() predicate.Agent

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

func HasMessagesWith

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

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

func HasModel

func HasModel() predicate.Agent

HasModel applies the HasEdge predicate on the "model" edge.

func HasModelWith

func HasModelWith(preds ...predicate.Model) predicate.Agent

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

func HasTasks

func HasTasks() predicate.Agent

HasTasks applies the HasEdge predicate on the "tasks" edge.

func HasTasksWith

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

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

func ID

func ID(id uuid.UUID) predicate.Agent

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Agent

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Agent

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Agent

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Agent

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Agent

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Agent

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Instructions

func Instructions(v string) predicate.Agent

Instructions applies equality check predicate on the "instructions" field. It's identical to InstructionsEQ.

func InstructionsContains

func InstructionsContains(v string) predicate.Agent

InstructionsContains applies the Contains predicate on the "instructions" field.

func InstructionsContainsFold

func InstructionsContainsFold(v string) predicate.Agent

InstructionsContainsFold applies the ContainsFold predicate on the "instructions" field.

func InstructionsEQ

func InstructionsEQ(v string) predicate.Agent

InstructionsEQ applies the EQ predicate on the "instructions" field.

func InstructionsEqualFold

func InstructionsEqualFold(v string) predicate.Agent

InstructionsEqualFold applies the EqualFold predicate on the "instructions" field.

func InstructionsGT

func InstructionsGT(v string) predicate.Agent

InstructionsGT applies the GT predicate on the "instructions" field.

func InstructionsGTE

func InstructionsGTE(v string) predicate.Agent

InstructionsGTE applies the GTE predicate on the "instructions" field.

func InstructionsHasPrefix

func InstructionsHasPrefix(v string) predicate.Agent

InstructionsHasPrefix applies the HasPrefix predicate on the "instructions" field.

func InstructionsHasSuffix

func InstructionsHasSuffix(v string) predicate.Agent

InstructionsHasSuffix applies the HasSuffix predicate on the "instructions" field.

func InstructionsIn

func InstructionsIn(vs ...string) predicate.Agent

InstructionsIn applies the In predicate on the "instructions" field.

func InstructionsLT

func InstructionsLT(v string) predicate.Agent

InstructionsLT applies the LT predicate on the "instructions" field.

func InstructionsLTE

func InstructionsLTE(v string) predicate.Agent

InstructionsLTE applies the LTE predicate on the "instructions" field.

func InstructionsNEQ

func InstructionsNEQ(v string) predicate.Agent

InstructionsNEQ applies the NEQ predicate on the "instructions" field.

func InstructionsNotIn

func InstructionsNotIn(vs ...string) predicate.Agent

InstructionsNotIn applies the NotIn predicate on the "instructions" field.

func ModelID

func ModelID(v uuid.UUID) predicate.Agent

ModelID applies equality check predicate on the "model_id" field. It's identical to ModelIDEQ.

func ModelIDEQ

func ModelIDEQ(v uuid.UUID) predicate.Agent

ModelIDEQ applies the EQ predicate on the "model_id" field.

func ModelIDIn

func ModelIDIn(vs ...uuid.UUID) predicate.Agent

ModelIDIn applies the In predicate on the "model_id" field.

func ModelIDIsNil

func ModelIDIsNil() predicate.Agent

ModelIDIsNil applies the IsNil predicate on the "model_id" field.

func ModelIDNEQ

func ModelIDNEQ(v uuid.UUID) predicate.Agent

ModelIDNEQ applies the NEQ predicate on the "model_id" field.

func ModelIDNotIn

func ModelIDNotIn(vs ...uuid.UUID) predicate.Agent

ModelIDNotIn applies the NotIn predicate on the "model_id" field.

func ModelIDNotNil

func ModelIDNotNil() predicate.Agent

ModelIDNotNil applies the NotNil predicate on the "model_id" field.

func Name

func Name(v string) predicate.Agent

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Agent

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Agent

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Agent

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Agent

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Agent

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Agent

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Agent

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Agent

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Agent

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Agent

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Agent

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Agent

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Agent

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Agent) predicate.Agent

Or groups predicates with the OR operator between them.

func UpdateTime

func UpdateTime(v time.Time) predicate.Agent

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Agent

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Agent

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Agent

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Agent

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Agent

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Agent

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

func UpdateTimeNotIn

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

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 Agent queries.

func ByBuiltin

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

ByBuiltin orders the results by the builtin 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 ByID

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

ByID orders the results by the id field.

func ByInstructions

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

ByInstructions orders the results by the instructions 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 ByModelField

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

ByModelField orders the results by model field.

func ByModelID

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

ByModelID orders the results by the model_id field.

func ByName

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

ByName orders the results by the name field.

func ByTasks

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

ByTasks orders the results by tasks terms.

func ByTasksCount

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

ByTasksCount orders the results by tasks count.

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