Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Agent) predicate.Agent
- func HasActivityEvents() predicate.Agent
- func HasActivityEventsWith(preds ...predicate.ActivityEvent) predicate.Agent
- func HasAgentStepEvents() predicate.Agent
- func HasAgentStepEventsWith(preds ...predicate.AgentStepEvent) predicate.Agent
- func HasAgentTraceEvents() predicate.Agent
- func HasAgentTraceEventsWith(preds ...predicate.AgentTraceEvent) predicate.Agent
- func HasProject() predicate.Agent
- func HasProjectWith(preds ...predicate.Project) predicate.Agent
- func HasProvider() predicate.Agent
- func HasProviderWith(preds ...predicate.AgentProvider) predicate.Agent
- func HasRuns() predicate.Agent
- func HasRunsWith(preds ...predicate.AgentRun) predicate.Agent
- func HasTokens() predicate.Agent
- func HasTokensWith(preds ...predicate.AgentToken) predicate.Agent
- func HasWorkflows() predicate.Agent
- func HasWorkflowsWith(preds ...predicate.Workflow) predicate.Agent
- func ID(id uuid.UUID) predicate.Agent
- func IDEQ(id uuid.UUID) predicate.Agent
- func IDGT(id uuid.UUID) predicate.Agent
- func IDGTE(id uuid.UUID) predicate.Agent
- func IDIn(ids ...uuid.UUID) predicate.Agent
- func IDLT(id uuid.UUID) predicate.Agent
- func IDLTE(id uuid.UUID) predicate.Agent
- func IDNEQ(id uuid.UUID) predicate.Agent
- func IDNotIn(ids ...uuid.UUID) predicate.Agent
- func Name(v string) predicate.Agent
- func NameContains(v string) predicate.Agent
- func NameContainsFold(v string) predicate.Agent
- func NameEQ(v string) predicate.Agent
- func NameEqualFold(v string) predicate.Agent
- func NameGT(v string) predicate.Agent
- func NameGTE(v string) predicate.Agent
- func NameHasPrefix(v string) predicate.Agent
- func NameHasSuffix(v string) predicate.Agent
- func NameIn(vs ...string) predicate.Agent
- func NameLT(v string) predicate.Agent
- func NameLTE(v string) predicate.Agent
- func NameNEQ(v string) predicate.Agent
- func NameNotIn(vs ...string) predicate.Agent
- func Not(p predicate.Agent) predicate.Agent
- func Or(predicates ...predicate.Agent) predicate.Agent
- func ProjectID(v uuid.UUID) predicate.Agent
- func ProjectIDEQ(v uuid.UUID) predicate.Agent
- func ProjectIDIn(vs ...uuid.UUID) predicate.Agent
- func ProjectIDNEQ(v uuid.UUID) predicate.Agent
- func ProjectIDNotIn(vs ...uuid.UUID) predicate.Agent
- func ProviderID(v uuid.UUID) predicate.Agent
- func ProviderIDEQ(v uuid.UUID) predicate.Agent
- func ProviderIDIn(vs ...uuid.UUID) predicate.Agent
- func ProviderIDNEQ(v uuid.UUID) predicate.Agent
- func ProviderIDNotIn(vs ...uuid.UUID) predicate.Agent
- func RuntimeControlStateEQ(v RuntimeControlState) predicate.Agent
- func RuntimeControlStateIn(vs ...RuntimeControlState) predicate.Agent
- func RuntimeControlStateNEQ(v RuntimeControlState) predicate.Agent
- func RuntimeControlStateNotIn(vs ...RuntimeControlState) predicate.Agent
- func RuntimeControlStateValidator(rcs RuntimeControlState) error
- func TotalTicketsCompleted(v int) predicate.Agent
- func TotalTicketsCompletedEQ(v int) predicate.Agent
- func TotalTicketsCompletedGT(v int) predicate.Agent
- func TotalTicketsCompletedGTE(v int) predicate.Agent
- func TotalTicketsCompletedIn(vs ...int) predicate.Agent
- func TotalTicketsCompletedLT(v int) predicate.Agent
- func TotalTicketsCompletedLTE(v int) predicate.Agent
- func TotalTicketsCompletedNEQ(v int) predicate.Agent
- func TotalTicketsCompletedNotIn(vs ...int) predicate.Agent
- func TotalTokensUsed(v int64) predicate.Agent
- func TotalTokensUsedEQ(v int64) predicate.Agent
- func TotalTokensUsedGT(v int64) predicate.Agent
- func TotalTokensUsedGTE(v int64) predicate.Agent
- func TotalTokensUsedIn(vs ...int64) predicate.Agent
- func TotalTokensUsedLT(v int64) predicate.Agent
- func TotalTokensUsedLTE(v int64) predicate.Agent
- func TotalTokensUsedNEQ(v int64) predicate.Agent
- func TotalTokensUsedNotIn(vs ...int64) predicate.Agent
- func ValidColumn(column string) bool
- type OrderOption
- func ByActivityEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByActivityEventsCount(opts ...sql.OrderTermOption) OrderOption
- func ByAgentStepEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAgentStepEventsCount(opts ...sql.OrderTermOption) OrderOption
- func ByAgentTraceEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAgentTraceEventsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProjectID(opts ...sql.OrderTermOption) OrderOption
- func ByProviderField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProviderID(opts ...sql.OrderTermOption) OrderOption
- func ByRuns(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRunsCount(opts ...sql.OrderTermOption) OrderOption
- func ByRuntimeControlState(opts ...sql.OrderTermOption) OrderOption
- func ByTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTokensCount(opts ...sql.OrderTermOption) OrderOption
- func ByTotalTicketsCompleted(opts ...sql.OrderTermOption) OrderOption
- func ByTotalTokensUsed(opts ...sql.OrderTermOption) OrderOption
- func ByWorkflows(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByWorkflowsCount(opts ...sql.OrderTermOption) OrderOption
- type RuntimeControlState
Constants ¶
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" // FieldProviderID holds the string denoting the provider_id field in the database. FieldProviderID = "provider_id" // FieldProjectID holds the string denoting the project_id field in the database. FieldProjectID = "project_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldRuntimeControlState holds the string denoting the runtime_control_state field in the database. FieldRuntimeControlState = "runtime_control_state" // FieldTotalTokensUsed holds the string denoting the total_tokens_used field in the database. FieldTotalTokensUsed = "total_tokens_used" // FieldTotalTicketsCompleted holds the string denoting the total_tickets_completed field in the database. FieldTotalTicketsCompleted = "total_tickets_completed" // EdgeProvider holds the string denoting the provider edge name in mutations. EdgeProvider = "provider" // EdgeProject holds the string denoting the project edge name in mutations. EdgeProject = "project" // EdgeWorkflows holds the string denoting the workflows edge name in mutations. EdgeWorkflows = "workflows" // EdgeRuns holds the string denoting the runs edge name in mutations. EdgeRuns = "runs" // EdgeTokens holds the string denoting the tokens edge name in mutations. EdgeTokens = "tokens" // EdgeAgentTraceEvents holds the string denoting the agent_trace_events edge name in mutations. EdgeAgentTraceEvents = "agent_trace_events" // EdgeAgentStepEvents holds the string denoting the agent_step_events edge name in mutations. EdgeAgentStepEvents = "agent_step_events" // EdgeActivityEvents holds the string denoting the activity_events edge name in mutations. EdgeActivityEvents = "activity_events" // Table holds the table name of the agent in the database. Table = "agents" // ProviderTable is the table that holds the provider relation/edge. ProviderTable = "agents" // ProviderInverseTable is the table name for the AgentProvider entity. // It exists in this package in order to avoid circular dependency with the "agentprovider" package. ProviderInverseTable = "agent_providers" // ProviderColumn is the table column denoting the provider relation/edge. ProviderColumn = "provider_id" // ProjectTable is the table that holds the project relation/edge. ProjectTable = "agents" // ProjectInverseTable is the table name for the Project entity. // It exists in this package in order to avoid circular dependency with the "project" package. ProjectInverseTable = "projects" // ProjectColumn is the table column denoting the project relation/edge. ProjectColumn = "project_id" // WorkflowsTable is the table that holds the workflows relation/edge. WorkflowsTable = "workflows" // WorkflowsInverseTable is the table name for the Workflow entity. // It exists in this package in order to avoid circular dependency with the "workflow" package. WorkflowsInverseTable = "workflows" // WorkflowsColumn is the table column denoting the workflows relation/edge. WorkflowsColumn = "agent_id" // RunsTable is the table that holds the runs relation/edge. RunsTable = "agent_runs" // RunsInverseTable is the table name for the AgentRun entity. // It exists in this package in order to avoid circular dependency with the "agentrun" package. RunsInverseTable = "agent_runs" // RunsColumn is the table column denoting the runs relation/edge. RunsColumn = "agent_id" // TokensTable is the table that holds the tokens relation/edge. TokensTable = "agent_tokens" // TokensInverseTable is the table name for the AgentToken entity. // It exists in this package in order to avoid circular dependency with the "agenttoken" package. TokensInverseTable = "agent_tokens" // TokensColumn is the table column denoting the tokens relation/edge. TokensColumn = "agent_id" // AgentTraceEventsTable is the table that holds the agent_trace_events relation/edge. AgentTraceEventsTable = "agent_trace_events" // AgentTraceEventsInverseTable is the table name for the AgentTraceEvent entity. // It exists in this package in order to avoid circular dependency with the "agenttraceevent" package. AgentTraceEventsInverseTable = "agent_trace_events" // AgentTraceEventsColumn is the table column denoting the agent_trace_events relation/edge. AgentTraceEventsColumn = "agent_id" // AgentStepEventsTable is the table that holds the agent_step_events relation/edge. AgentStepEventsTable = "agent_step_events" // AgentStepEventsInverseTable is the table name for the AgentStepEvent entity. // It exists in this package in order to avoid circular dependency with the "agentstepevent" package. AgentStepEventsInverseTable = "agent_step_events" // AgentStepEventsColumn is the table column denoting the agent_step_events relation/edge. AgentStepEventsColumn = "agent_id" // ActivityEventsTable is the table that holds the activity_events relation/edge. ActivityEventsTable = "activity_events" // ActivityEventsInverseTable is the table name for the ActivityEvent entity. // It exists in this package in order to avoid circular dependency with the "activityevent" package. ActivityEventsInverseTable = "activity_events" // ActivityEventsColumn is the table column denoting the activity_events relation/edge. ActivityEventsColumn = "agent_id" )
const DefaultRuntimeControlState = RuntimeControlStateActive
RuntimeControlStateActive is the default value of the RuntimeControlState enum.
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultTotalTokensUsed holds the default value on creation for the "total_tokens_used" field. DefaultTotalTokensUsed int64 // DefaultTotalTicketsCompleted holds the default value on creation for the "total_tickets_completed" field. DefaultTotalTicketsCompleted int // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldProviderID, FieldProjectID, FieldName, FieldRuntimeControlState, FieldTotalTokensUsed, FieldTotalTicketsCompleted, }
Columns holds all SQL columns for agent fields.
Functions ¶
func HasActivityEvents ¶
HasActivityEvents applies the HasEdge predicate on the "activity_events" edge.
func HasActivityEventsWith ¶
func HasActivityEventsWith(preds ...predicate.ActivityEvent) predicate.Agent
HasActivityEventsWith applies the HasEdge predicate on the "activity_events" edge with a given conditions (other predicates).
func HasAgentStepEvents ¶
HasAgentStepEvents applies the HasEdge predicate on the "agent_step_events" edge.
func HasAgentStepEventsWith ¶
func HasAgentStepEventsWith(preds ...predicate.AgentStepEvent) predicate.Agent
HasAgentStepEventsWith applies the HasEdge predicate on the "agent_step_events" edge with a given conditions (other predicates).
func HasAgentTraceEvents ¶
HasAgentTraceEvents applies the HasEdge predicate on the "agent_trace_events" edge.
func HasAgentTraceEventsWith ¶
func HasAgentTraceEventsWith(preds ...predicate.AgentTraceEvent) predicate.Agent
HasAgentTraceEventsWith applies the HasEdge predicate on the "agent_trace_events" edge with a given conditions (other predicates).
func HasProject ¶
HasProject applies the HasEdge predicate on the "project" edge.
func HasProjectWith ¶
HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
func HasProvider ¶
HasProvider applies the HasEdge predicate on the "provider" edge.
func HasProviderWith ¶
func HasProviderWith(preds ...predicate.AgentProvider) predicate.Agent
HasProviderWith applies the HasEdge predicate on the "provider" edge with a given conditions (other predicates).
func HasRunsWith ¶
HasRunsWith applies the HasEdge predicate on the "runs" edge with a given conditions (other predicates).
func HasTokensWith ¶
func HasTokensWith(preds ...predicate.AgentToken) predicate.Agent
HasTokensWith applies the HasEdge predicate on the "tokens" edge with a given conditions (other predicates).
func HasWorkflows ¶
HasWorkflows applies the HasEdge predicate on the "workflows" edge.
func HasWorkflowsWith ¶
HasWorkflowsWith applies the HasEdge predicate on the "workflows" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ProjectID ¶
ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.
func ProjectIDEQ ¶
ProjectIDEQ applies the EQ predicate on the "project_id" field.
func ProjectIDIn ¶
ProjectIDIn applies the In predicate on the "project_id" field.
func ProjectIDNEQ ¶
ProjectIDNEQ applies the NEQ predicate on the "project_id" field.
func ProjectIDNotIn ¶
ProjectIDNotIn applies the NotIn predicate on the "project_id" field.
func ProviderID ¶
ProviderID applies equality check predicate on the "provider_id" field. It's identical to ProviderIDEQ.
func ProviderIDEQ ¶
ProviderIDEQ applies the EQ predicate on the "provider_id" field.
func ProviderIDIn ¶
ProviderIDIn applies the In predicate on the "provider_id" field.
func ProviderIDNEQ ¶
ProviderIDNEQ applies the NEQ predicate on the "provider_id" field.
func ProviderIDNotIn ¶
ProviderIDNotIn applies the NotIn predicate on the "provider_id" field.
func RuntimeControlStateEQ ¶
func RuntimeControlStateEQ(v RuntimeControlState) predicate.Agent
RuntimeControlStateEQ applies the EQ predicate on the "runtime_control_state" field.
func RuntimeControlStateIn ¶
func RuntimeControlStateIn(vs ...RuntimeControlState) predicate.Agent
RuntimeControlStateIn applies the In predicate on the "runtime_control_state" field.
func RuntimeControlStateNEQ ¶
func RuntimeControlStateNEQ(v RuntimeControlState) predicate.Agent
RuntimeControlStateNEQ applies the NEQ predicate on the "runtime_control_state" field.
func RuntimeControlStateNotIn ¶
func RuntimeControlStateNotIn(vs ...RuntimeControlState) predicate.Agent
RuntimeControlStateNotIn applies the NotIn predicate on the "runtime_control_state" field.
func RuntimeControlStateValidator ¶
func RuntimeControlStateValidator(rcs RuntimeControlState) error
RuntimeControlStateValidator is a validator for the "runtime_control_state" field enum values. It is called by the builders before save.
func TotalTicketsCompleted ¶
TotalTicketsCompleted applies equality check predicate on the "total_tickets_completed" field. It's identical to TotalTicketsCompletedEQ.
func TotalTicketsCompletedEQ ¶
TotalTicketsCompletedEQ applies the EQ predicate on the "total_tickets_completed" field.
func TotalTicketsCompletedGT ¶
TotalTicketsCompletedGT applies the GT predicate on the "total_tickets_completed" field.
func TotalTicketsCompletedGTE ¶
TotalTicketsCompletedGTE applies the GTE predicate on the "total_tickets_completed" field.
func TotalTicketsCompletedIn ¶
TotalTicketsCompletedIn applies the In predicate on the "total_tickets_completed" field.
func TotalTicketsCompletedLT ¶
TotalTicketsCompletedLT applies the LT predicate on the "total_tickets_completed" field.
func TotalTicketsCompletedLTE ¶
TotalTicketsCompletedLTE applies the LTE predicate on the "total_tickets_completed" field.
func TotalTicketsCompletedNEQ ¶
TotalTicketsCompletedNEQ applies the NEQ predicate on the "total_tickets_completed" field.
func TotalTicketsCompletedNotIn ¶
TotalTicketsCompletedNotIn applies the NotIn predicate on the "total_tickets_completed" field.
func TotalTokensUsed ¶
TotalTokensUsed applies equality check predicate on the "total_tokens_used" field. It's identical to TotalTokensUsedEQ.
func TotalTokensUsedEQ ¶
TotalTokensUsedEQ applies the EQ predicate on the "total_tokens_used" field.
func TotalTokensUsedGT ¶
TotalTokensUsedGT applies the GT predicate on the "total_tokens_used" field.
func TotalTokensUsedGTE ¶
TotalTokensUsedGTE applies the GTE predicate on the "total_tokens_used" field.
func TotalTokensUsedIn ¶
TotalTokensUsedIn applies the In predicate on the "total_tokens_used" field.
func TotalTokensUsedLT ¶
TotalTokensUsedLT applies the LT predicate on the "total_tokens_used" field.
func TotalTokensUsedLTE ¶
TotalTokensUsedLTE applies the LTE predicate on the "total_tokens_used" field.
func TotalTokensUsedNEQ ¶
TotalTokensUsedNEQ applies the NEQ predicate on the "total_tokens_used" field.
func TotalTokensUsedNotIn ¶
TotalTokensUsedNotIn applies the NotIn predicate on the "total_tokens_used" 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 Agent queries.
func ByActivityEvents ¶
func ByActivityEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByActivityEvents orders the results by activity_events terms.
func ByActivityEventsCount ¶
func ByActivityEventsCount(opts ...sql.OrderTermOption) OrderOption
ByActivityEventsCount orders the results by activity_events count.
func ByAgentStepEvents ¶
func ByAgentStepEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAgentStepEvents orders the results by agent_step_events terms.
func ByAgentStepEventsCount ¶
func ByAgentStepEventsCount(opts ...sql.OrderTermOption) OrderOption
ByAgentStepEventsCount orders the results by agent_step_events count.
func ByAgentTraceEvents ¶
func ByAgentTraceEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAgentTraceEvents orders the results by agent_trace_events terms.
func ByAgentTraceEventsCount ¶
func ByAgentTraceEventsCount(opts ...sql.OrderTermOption) OrderOption
ByAgentTraceEventsCount orders the results by agent_trace_events count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByProjectField ¶
func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption
ByProjectField orders the results by project field.
func ByProjectID ¶
func ByProjectID(opts ...sql.OrderTermOption) OrderOption
ByProjectID orders the results by the project_id field.
func ByProviderField ¶
func ByProviderField(field string, opts ...sql.OrderTermOption) OrderOption
ByProviderField orders the results by provider field.
func ByProviderID ¶
func ByProviderID(opts ...sql.OrderTermOption) OrderOption
ByProviderID orders the results by the provider_id field.
func ByRuns ¶
func ByRuns(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRuns orders the results by runs terms.
func ByRunsCount ¶
func ByRunsCount(opts ...sql.OrderTermOption) OrderOption
ByRunsCount orders the results by runs count.
func ByRuntimeControlState ¶
func ByRuntimeControlState(opts ...sql.OrderTermOption) OrderOption
ByRuntimeControlState orders the results by the runtime_control_state field.
func ByTokens ¶
func ByTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTokens orders the results by tokens terms.
func ByTokensCount ¶
func ByTokensCount(opts ...sql.OrderTermOption) OrderOption
ByTokensCount orders the results by tokens count.
func ByTotalTicketsCompleted ¶
func ByTotalTicketsCompleted(opts ...sql.OrderTermOption) OrderOption
ByTotalTicketsCompleted orders the results by the total_tickets_completed field.
func ByTotalTokensUsed ¶
func ByTotalTokensUsed(opts ...sql.OrderTermOption) OrderOption
ByTotalTokensUsed orders the results by the total_tokens_used field.
func ByWorkflows ¶
func ByWorkflows(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByWorkflows orders the results by workflows terms.
func ByWorkflowsCount ¶
func ByWorkflowsCount(opts ...sql.OrderTermOption) OrderOption
ByWorkflowsCount orders the results by workflows count.
type RuntimeControlState ¶
type RuntimeControlState string
RuntimeControlState defines the type for the "runtime_control_state" enum field.
const ( RuntimeControlStateActive RuntimeControlState = "active" RuntimeControlStateInterruptRequested RuntimeControlState = "interrupt_requested" RuntimeControlStatePauseRequested RuntimeControlState = "pause_requested" RuntimeControlStatePaused RuntimeControlState = "paused" RuntimeControlStateRetired RuntimeControlState = "retired" )
RuntimeControlState values.
func (RuntimeControlState) String ¶
func (rcs RuntimeControlState) String() string