Documentation
¶
Overview ¶
Package schema provides Ent ORM schema definitions.
Package schema provides Ent schema definitions and domain types for the store layer.
Index ¶
- Variables
- func ValidatePipelineName(name string) error
- type ActionState
- type Agent
- type AgentPlan
- type AgentSkill
- type AgentSkillFile
- type AgentSubagent
- type AgentSubagentTask
- type AgentSubagentTaskStatus
- type App
- type AppStatus
- type AuditLog
- type Authentication
- type Behavior
- type Bot
- type BotState
- type CapabilityBinding
- type Channel
- type ChannelState
- type ChatScheduledTask
- type ChatScheduledTaskKind
- type ChatScheduledTaskRun
- type ChatScheduledTaskRunState
- type ChatScheduledTaskState
- type ChatSession
- type ChatSessionEntry
- type ChatSessionMode
- type ChatSessionState
- type Clip
- type ConfigData
- type Connection
- type Counter
- type CounterRecord
- type CycleState
- type Data
- type DataEvent
- type Edge
- type EdgeConnector
- type EdgeRouter
- type EventConsumption
- type EventOutbox
- type ExecutionState
- type FileState
- type Fileupload
- type FlowState
- type Form
- type FormState
- type IDList
- type Instruct
- type InstructObject
- type InstructPriority
- type InstructState
- type JSON
- type JobState
- type LLMUsageRecord
- type Message
- type MessageState
- type Node
- type NodePort
- type NodeStatus
- type NodeType
- type NotificationRecord
- type NotifyChannel
- type NotifyRule
- type NotifyTemplate
- type NotifyTemplateOverride
- type OAuth
- type Page
- type PageData
- type PageState
- type PageType
- type Parameter
- type PipelineDefinition
- type PipelineDefinitionVersion
- type PipelineRun
- type PipelineState
- type PipelineStepRun
- type Platform
- type PlatformBot
- type PlatformChannel
- type PlatformChannelUser
- type PlatformUser
- type PollingState
- type RateLimitType
- type ResourceEdge
- type ResourceLink
- type ResourceRef
- type ResourceRelations
- type ReviewType
- type SessionState
- type StepState
- type Topic
- type TopicState
- type TriggerCronRule
- type TriggerType
- type Url
- type UrlState
- type User
- type UserState
- type ValueModeType
- type WorkflowRun
- type WorkflowRunState
- type WorkflowScriptLang
- type WorkflowState
- type WorkflowStepRun
- type WorkflowTriggerState
Constants ¶
This section is empty.
Variables ¶
var PipelineNamePattern = regexp.MustCompile(`^[\p{L}\p{N}][\p{L}\p{N}_-]*$`)
PipelineNamePattern matches valid pipeline names: Unicode letters and digits, with optional underscores and hyphens. Must start with a letter or digit.
Functions ¶
func ValidatePipelineName ¶ added in v0.97.8
ValidatePipelineName reports whether name is a valid pipeline identifier.
Types ¶
type ActionState ¶
type ActionState int
const ( ActionStateUnknown ActionState = iota ActionStateLongTerm ActionStateSubmitSuccess ActionStateSubmitFailed )
type Agent ¶
func (Agent) Annotations ¶
func (Agent) Annotations() []schema.Annotation
type AgentPlan ¶ added in v0.94.0
AgentPlan stores a plan document produced during chat agent plan mode.
func (AgentPlan) Annotations ¶ added in v0.94.0
func (AgentPlan) Annotations() []schema.Annotation
type AgentSkill ¶ added in v0.93.0
AgentSkill stores an agent skill definition loaded into chat assistant prompts.
func (AgentSkill) Annotations ¶ added in v0.93.0
func (AgentSkill) Annotations() []schema.Annotation
func (AgentSkill) Fields ¶ added in v0.93.0
func (AgentSkill) Fields() []ent.Field
func (AgentSkill) Indexes ¶ added in v0.93.0
func (AgentSkill) Indexes() []ent.Index
type AgentSkillFile ¶ added in v0.94.0
AgentSkillFile stores an auxiliary file belonging to an agent skill directory.
func (AgentSkillFile) Annotations ¶ added in v0.94.0
func (AgentSkillFile) Annotations() []schema.Annotation
Annotations pins the database table name for agent skill files.
func (AgentSkillFile) Fields ¶ added in v0.94.0
func (AgentSkillFile) Fields() []ent.Field
Fields defines the agent skill file columns.
func (AgentSkillFile) Indexes ¶ added in v0.94.0
func (AgentSkillFile) Indexes() []ent.Index
Indexes enforces unique paths per skill and lookup by skill flag.
type AgentSubagent ¶ added in v0.93.0
AgentSubagent stores a chat assistant subagent definition delegated through the task tool.
func (AgentSubagent) Annotations ¶ added in v0.93.0
func (AgentSubagent) Annotations() []schema.Annotation
Annotations pins the database table name for the subagent definitions.
func (AgentSubagent) Fields ¶ added in v0.93.0
func (AgentSubagent) Fields() []ent.Field
Fields defines the subagent columns mirroring the agent skill schema with delegation-specific attributes.
func (AgentSubagent) Indexes ¶ added in v0.93.0
func (AgentSubagent) Indexes() []ent.Index
Indexes enforces a unique subagent name and an enabled lookup index.
type AgentSubagentTask ¶ added in v0.94.0
AgentSubagentTask records one task delegation through the task tool.
func (AgentSubagentTask) Annotations ¶ added in v0.94.0
func (AgentSubagentTask) Annotations() []schema.Annotation
Annotations pins the database table name for subagent task records.
func (AgentSubagentTask) Fields ¶ added in v0.94.0
func (AgentSubagentTask) Fields() []ent.Field
Fields defines the subagent task columns.
func (AgentSubagentTask) Indexes ¶ added in v0.94.0
func (AgentSubagentTask) Indexes() []ent.Index
Indexes supports session and status lookups for task history.
type AgentSubagentTaskStatus ¶ added in v0.94.0
type AgentSubagentTaskStatus string
AgentSubagentTaskStatus is the lifecycle state of a delegated subagent task.
const ( // AgentSubagentTaskStatusRunning indicates the subagent is still executing. AgentSubagentTaskStatusRunning AgentSubagentTaskStatus = "running" // AgentSubagentTaskStatusCompleted indicates the subagent finished successfully. AgentSubagentTaskStatusCompleted AgentSubagentTaskStatus = "completed" // AgentSubagentTaskStatusFailed indicates the subagent run failed. AgentSubagentTaskStatusFailed AgentSubagentTaskStatus = "failed" )
type App ¶
func (App) Annotations ¶
func (App) Annotations() []schema.Annotation
type AuditLog ¶
func (AuditLog) Annotations ¶
func (AuditLog) Annotations() []schema.Annotation
type Authentication ¶
func (Authentication) Annotations ¶
func (Authentication) Annotations() []schema.Annotation
func (Authentication) Fields ¶
func (Authentication) Fields() []ent.Field
type Behavior ¶
func (Behavior) Annotations ¶
func (Behavior) Annotations() []schema.Annotation
type Bot ¶
func (Bot) Annotations ¶
func (Bot) Annotations() []schema.Annotation
type CapabilityBinding ¶
func (CapabilityBinding) Annotations ¶
func (CapabilityBinding) Annotations() []schema.Annotation
func (CapabilityBinding) Fields ¶
func (CapabilityBinding) Fields() []ent.Field
type Channel ¶
func (Channel) Annotations ¶
func (Channel) Annotations() []schema.Annotation
type ChannelState ¶
type ChannelState int
const ( ChannelStateUnknown ChannelState = iota ChannelActive ChannelInactive )
type ChatScheduledTask ¶ added in v0.94.0
ChatScheduledTask stores a user-owned cron or one-shot chat agent job.
func (ChatScheduledTask) Annotations ¶ added in v0.94.0
func (ChatScheduledTask) Annotations() []schema.Annotation
func (ChatScheduledTask) Fields ¶ added in v0.94.0
func (ChatScheduledTask) Fields() []ent.Field
func (ChatScheduledTask) Indexes ¶ added in v0.94.0
func (ChatScheduledTask) Indexes() []ent.Index
type ChatScheduledTaskKind ¶ added in v0.94.0
type ChatScheduledTaskKind string
ChatScheduledTaskKind distinguishes recurring cron jobs from one-shot runs.
const ( // ChatScheduledTaskKindCron runs on a cron expression. ChatScheduledTaskKindCron ChatScheduledTaskKind = "cron" // ChatScheduledTaskKindOnce runs once at run_at. ChatScheduledTaskKindOnce ChatScheduledTaskKind = "once" )
type ChatScheduledTaskRun ¶ added in v0.94.0
ChatScheduledTaskRun records one execution of a chat scheduled task.
func (ChatScheduledTaskRun) Annotations ¶ added in v0.94.0
func (ChatScheduledTaskRun) Annotations() []schema.Annotation
func (ChatScheduledTaskRun) Fields ¶ added in v0.94.0
func (ChatScheduledTaskRun) Fields() []ent.Field
func (ChatScheduledTaskRun) Indexes ¶ added in v0.94.0
func (ChatScheduledTaskRun) Indexes() []ent.Index
type ChatScheduledTaskRunState ¶ added in v0.94.0
type ChatScheduledTaskRunState string
ChatScheduledTaskRunState tracks one execution attempt.
const ( // ChatScheduledTaskRunStateRunning is in progress. ChatScheduledTaskRunStateRunning ChatScheduledTaskRunState = "running" // ChatScheduledTaskRunStateCompleted finished successfully. ChatScheduledTaskRunStateCompleted ChatScheduledTaskRunState = "completed" // ChatScheduledTaskRunStateFailed finished with an error. ChatScheduledTaskRunStateFailed ChatScheduledTaskRunState = "failed" )
type ChatScheduledTaskState ¶ added in v0.94.0
type ChatScheduledTaskState string
ChatScheduledTaskState tracks lifecycle of a scheduled task definition.
const ( // ChatScheduledTaskStateActive is eligible for scheduling. ChatScheduledTaskStateActive ChatScheduledTaskState = "active" // ChatScheduledTaskStatePaused is retained but not scheduled. ChatScheduledTaskStatePaused ChatScheduledTaskState = "paused" // ChatScheduledTaskStateCancelled was explicitly cancelled by the user. ChatScheduledTaskStateCancelled ChatScheduledTaskState = "cancelled" // ChatScheduledTaskStateCompleted finished a one-shot run successfully. ChatScheduledTaskStateCompleted ChatScheduledTaskState = "completed" // ChatScheduledTaskStateFailed finished a one-shot run with an error. ChatScheduledTaskStateFailed ChatScheduledTaskState = "failed" // ChatScheduledTaskStateMissed was not executed within the grace window after run_at. ChatScheduledTaskStateMissed ChatScheduledTaskState = "missed" )
type ChatSession ¶ added in v0.93.0
ChatSession stores metadata for a direct-message chat assistant session.
func (ChatSession) Annotations ¶ added in v0.93.0
func (ChatSession) Annotations() []schema.Annotation
func (ChatSession) Fields ¶ added in v0.93.0
func (ChatSession) Fields() []ent.Field
func (ChatSession) Indexes ¶ added in v0.93.0
func (ChatSession) Indexes() []ent.Index
type ChatSessionEntry ¶ added in v0.93.0
ChatSessionEntry stores one append-only node in a chat agent session tree.
func (ChatSessionEntry) Annotations ¶ added in v0.93.0
func (ChatSessionEntry) Annotations() []schema.Annotation
func (ChatSessionEntry) Fields ¶ added in v0.93.0
func (ChatSessionEntry) Fields() []ent.Field
func (ChatSessionEntry) Indexes ¶ added in v0.93.0
func (ChatSessionEntry) Indexes() []ent.Index
type ChatSessionMode ¶ added in v0.94.0
type ChatSessionMode string
ChatSessionMode selects whether the chat agent may mutate the workspace.
const ( // ChatSessionModeNormal allows full tool access per user permissions. ChatSessionModeNormal ChatSessionMode = "normal" // ChatSessionModePlan restricts the agent to read-only research tools. ChatSessionModePlan ChatSessionMode = "plan" )
type ChatSessionState ¶ added in v0.93.0
type ChatSessionState int
const ( ChatSessionStateUnknown ChatSessionState = iota ChatSessionActive ChatSessionClosed )
type Clip ¶ added in v0.97.8
Clip stores a shareable markdown clip addressed by a short slug.
func (Clip) Annotations ¶ added in v0.97.8
func (Clip) Annotations() []schema.Annotation
Annotations of the Clip.
type ConfigData ¶
func (ConfigData) Annotations ¶
func (ConfigData) Annotations() []schema.Annotation
func (ConfigData) Fields ¶
func (ConfigData) Fields() []ent.Field
func (ConfigData) Indexes ¶
func (ConfigData) Indexes() []ent.Index
type Connection ¶
func (Connection) Annotations ¶
func (Connection) Annotations() []schema.Annotation
func (Connection) Fields ¶
func (Connection) Fields() []ent.Field
type Counter ¶
func (Counter) Annotations ¶
func (Counter) Annotations() []schema.Annotation
type CounterRecord ¶
func (CounterRecord) Annotations ¶
func (CounterRecord) Annotations() []schema.Annotation
func (CounterRecord) Fields ¶
func (CounterRecord) Fields() []ent.Field
type CycleState ¶
type CycleState int
const ( CycleStateUnknown CycleState = iota CycleStart CycleDone CycleCancel )
type Data ¶
func (Data) Annotations ¶
func (Data) Annotations() []schema.Annotation
type DataEvent ¶
func (DataEvent) Annotations ¶
func (DataEvent) Annotations() []schema.Annotation
type Edge ¶
type Edge struct {
Id string `json:"id"`
Source string `json:"source"`
Target string `json:"target"`
SourcePortId string `json:"sourcePortId,omitempty"`
TargetPortId string `json:"targetPortId,omitempty"`
Label string `json:"label,omitempty"`
EdgeContentWidth int `json:"edgeContentWidth,omitempty"`
EdgeContentHeight int `json:"edgeContentHeight,omitempty"`
Connector EdgeConnector `json:"connector"`
Router EdgeRouter `json:"router"`
SourcePort string `json:"sourcePort,omitempty"`
TargetPort string `json:"targetPort,omitempty"`
}
type EdgeConnector ¶
type EdgeConnector struct {
Name string `json:"name,omitempty"`
}
EdgeConnector describes the connector for an edge.
type EdgeRouter ¶
type EdgeRouter struct {
Name string `json:"name,omitempty"`
}
EdgeRouter describes the router for an edge.
type EventConsumption ¶
func (EventConsumption) Annotations ¶
func (EventConsumption) Annotations() []schema.Annotation
func (EventConsumption) Fields ¶
func (EventConsumption) Fields() []ent.Field
func (EventConsumption) Indexes ¶
func (EventConsumption) Indexes() []ent.Index
type EventOutbox ¶
func (EventOutbox) Annotations ¶
func (EventOutbox) Annotations() []schema.Annotation
func (EventOutbox) Fields ¶
func (EventOutbox) Fields() []ent.Field
type ExecutionState ¶
type ExecutionState int
const ( ExecutionStateUnknown ExecutionState = iota ExecutionPending ExecutionRunning ExecutionSucceeded ExecutionFailed ExecutionCancelled )
type Fileupload ¶
func (Fileupload) Annotations ¶
func (Fileupload) Annotations() []schema.Annotation
func (Fileupload) Fields ¶
func (Fileupload) Fields() []ent.Field
func (Fileupload) Indexes ¶
func (Fileupload) Indexes() []ent.Index
type Form ¶
func (Form) Annotations ¶
func (Form) Annotations() []schema.Annotation
type IDList ¶
type IDList []int64
IDList is a []int64 with database Scan/Value support for JSONB array columns.
type Instruct ¶
func (Instruct) Annotations ¶
func (Instruct) Annotations() []schema.Annotation
type InstructObject ¶
type InstructObject string
const (
InstructObjectAgent InstructObject = "agent"
)
type InstructPriority ¶
type InstructPriority int
const ( InstructPriorityHigh InstructPriority = 3 InstructPriorityDefault InstructPriority = 2 InstructPriorityLow InstructPriority = 1 )
type InstructState ¶
type InstructState int
const ( InstructStateUnknown InstructState = iota InstructCreate InstructDone InstructCancel )
type LLMUsageRecord ¶ added in v0.95.0
LLMUsageRecord stores token consumption for one LLM call.
func (LLMUsageRecord) Annotations ¶ added in v0.95.0
func (LLMUsageRecord) Annotations() []schema.Annotation
func (LLMUsageRecord) Fields ¶ added in v0.95.0
func (LLMUsageRecord) Fields() []ent.Field
func (LLMUsageRecord) Indexes ¶ added in v0.95.0
func (LLMUsageRecord) Indexes() []ent.Index
type Message ¶
func (Message) Annotations ¶
func (Message) Annotations() []schema.Annotation
type MessageState ¶
type MessageState int
const ( MessageStateUnknown MessageState = iota MessageCreated )
type Node ¶
type Node struct {
Id string `json:"id"`
Describe string `json:"describe"`
X int `json:"x,omitempty"`
Y int `json:"y,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
Label string `json:"label,omitempty"`
RenderKey string `json:"renderKey,omitempty"`
IsGroup bool `json:"isGroup,omitempty"`
Group string `json:"group,omitempty"`
ParentId string `json:"parentId,omitempty"`
Ports []NodePort `json:"ports,omitempty"`
Order int `json:"_order,omitempty"`
Bot string `json:"bot"`
RuleId string `json:"rule_id"`
Parameters map[string]any `json:"parameters,omitempty"`
Variables []string `json:"variables,omitempty"`
Connections []string `json:"connections,omitempty"`
Status NodeStatus `json:"status,omitempty"`
}
type NodePort ¶
type NodePort struct {
Id string `json:"id,omitempty"`
Group string `json:"group,omitempty"`
Type string `json:"type,omitempty"`
Tooltip string `json:"tooltip,omitempty"`
Connected bool `json:"connected,omitempty"`
}
NodePort describes a port on a flow node.
type NodeStatus ¶
type NodeStatus string
const ( NodeDefault NodeStatus = "default" NodeSuccess NodeStatus = "success" NodeProcessing NodeStatus = "processing" NodeError NodeStatus = "error" NodeWarning NodeStatus = "warning" )
type NotificationRecord ¶
func (NotificationRecord) Annotations ¶
func (NotificationRecord) Annotations() []schema.Annotation
func (NotificationRecord) Fields ¶
func (NotificationRecord) Fields() []ent.Field
func (NotificationRecord) Indexes ¶
func (NotificationRecord) Indexes() []ent.Index
type NotifyChannel ¶
func (NotifyChannel) Annotations ¶
func (NotifyChannel) Annotations() []schema.Annotation
func (NotifyChannel) Fields ¶
func (NotifyChannel) Fields() []ent.Field
func (NotifyChannel) Indexes ¶
func (NotifyChannel) Indexes() []ent.Index
type NotifyRule ¶
func (NotifyRule) Annotations ¶
func (NotifyRule) Annotations() []schema.Annotation
func (NotifyRule) Fields ¶
func (NotifyRule) Fields() []ent.Field
func (NotifyRule) Indexes ¶
func (NotifyRule) Indexes() []ent.Index
type NotifyTemplate ¶ added in v0.97.8
NotifyTemplate holds a notification message template persisted in the database.
func (NotifyTemplate) Annotations ¶ added in v0.97.8
func (NotifyTemplate) Annotations() []schema.Annotation
Annotations of the NotifyTemplate.
func (NotifyTemplate) Fields ¶ added in v0.97.8
func (NotifyTemplate) Fields() []ent.Field
Fields of the NotifyTemplate.
func (NotifyTemplate) Indexes ¶ added in v0.97.8
func (NotifyTemplate) Indexes() []ent.Index
Indexes of the NotifyTemplate.
type NotifyTemplateOverride ¶ added in v0.97.8
type NotifyTemplateOverride struct {
Channel string `json:"channel"`
Format string `json:"format"`
Template string `json:"template"`
}
NotifyTemplateOverride is a channel-specific template body stored as JSON.
type OAuth ¶
func (OAuth) Annotations ¶
func (OAuth) Annotations() []schema.Annotation
type Page ¶
func (Page) Annotations ¶
func (Page) Annotations() []schema.Annotation
type PageData ¶
PageData represents a shared page with token-based access.
func (PageData) Annotations ¶
func (PageData) Annotations() []schema.Annotation
Annotations of the PageData.
type Parameter ¶
func (Parameter) Annotations ¶
func (Parameter) Annotations() []schema.Annotation
type PipelineDefinition ¶
func (PipelineDefinition) Annotations ¶
func (PipelineDefinition) Annotations() []schema.Annotation
func (PipelineDefinition) Fields ¶
func (PipelineDefinition) Fields() []ent.Field
type PipelineDefinitionVersion ¶
PipelineDefinitionVersion stores YAML snapshots of pipeline definitions each time a pipeline is published. It enforces a composite unique constraint on (pipeline_name, version) so that each name+version pair is immutable.
func (PipelineDefinitionVersion) Annotations ¶
func (PipelineDefinitionVersion) Annotations() []schema.Annotation
func (PipelineDefinitionVersion) Fields ¶
func (PipelineDefinitionVersion) Fields() []ent.Field
func (PipelineDefinitionVersion) Indexes ¶
func (PipelineDefinitionVersion) Indexes() []ent.Index
type PipelineRun ¶
func (PipelineRun) Annotations ¶
func (PipelineRun) Annotations() []schema.Annotation
func (PipelineRun) Fields ¶
func (PipelineRun) Fields() []ent.Field
func (PipelineRun) Indexes ¶
func (PipelineRun) Indexes() []ent.Index
type PipelineState ¶
type PipelineState int
const ( PipelineStateUnknown PipelineState = iota PipelineStart PipelineDone PipelineCancel PipelineFailed )
type PipelineStepRun ¶
func (PipelineStepRun) Annotations ¶
func (PipelineStepRun) Annotations() []schema.Annotation
func (PipelineStepRun) Fields ¶
func (PipelineStepRun) Fields() []ent.Field
func (PipelineStepRun) Indexes ¶
func (PipelineStepRun) Indexes() []ent.Index
type Platform ¶
func (Platform) Annotations ¶
func (Platform) Annotations() []schema.Annotation
type PlatformBot ¶
func (PlatformBot) Annotations ¶
func (PlatformBot) Annotations() []schema.Annotation
func (PlatformBot) Fields ¶
func (PlatformBot) Fields() []ent.Field
func (PlatformBot) Indexes ¶
func (PlatformBot) Indexes() []ent.Index
type PlatformChannel ¶
func (PlatformChannel) Annotations ¶
func (PlatformChannel) Annotations() []schema.Annotation
func (PlatformChannel) Fields ¶
func (PlatformChannel) Fields() []ent.Field
func (PlatformChannel) Indexes ¶
func (PlatformChannel) Indexes() []ent.Index
type PlatformChannelUser ¶
func (PlatformChannelUser) Annotations ¶
func (PlatformChannelUser) Annotations() []schema.Annotation
func (PlatformChannelUser) Fields ¶
func (PlatformChannelUser) Fields() []ent.Field
func (PlatformChannelUser) Indexes ¶
func (PlatformChannelUser) Indexes() []ent.Index
type PlatformUser ¶
func (PlatformUser) Annotations ¶
func (PlatformUser) Annotations() []schema.Annotation
func (PlatformUser) Fields ¶
func (PlatformUser) Fields() []ent.Field
func (PlatformUser) Indexes ¶
func (PlatformUser) Indexes() []ent.Index
type PollingState ¶
func (PollingState) Annotations ¶
func (PollingState) Annotations() []schema.Annotation
func (PollingState) Fields ¶
func (PollingState) Fields() []ent.Field
type RateLimitType ¶
type RateLimitType string
const ( RateLimitTypeFlow RateLimitType = "flow" RateLimitTypeNode RateLimitType = "node" )
type ResourceEdge ¶
type ResourceEdge struct {
SourceApp string `json:"source_app"`
SourceCapability string `json:"source_capability"`
SourceEntityID string `json:"source_entity_id"`
TargetApp string `json:"target_app"`
TargetCapability string `json:"target_capability"`
TargetEntityID string `json:"target_entity_id"`
PipelineName string `json:"pipeline_name"`
CreatedAt time.Time `json:"created_at"`
}
ResourceEdge represents a directed resource link with full source and target details plus pipeline metadata and creation time.
type ResourceLink ¶
func (ResourceLink) Annotations ¶
func (ResourceLink) Annotations() []schema.Annotation
func (ResourceLink) Fields ¶
func (ResourceLink) Fields() []ent.Field
func (ResourceLink) Indexes ¶
func (ResourceLink) Indexes() []ent.Index
type ResourceRef ¶
type ResourceRef struct {
App string `json:"app"`
EntityID string `json:"entity_id"`
Capability string `json:"capability,omitempty"`
PipelineName string `json:"pipeline_name,omitempty"`
}
ResourceRef identifies a resource by app, entity_id, and optional metadata.
type ResourceRelations ¶
type ResourceRelations struct {
App string `json:"app"`
EntityID string `json:"entity_id"`
Upstream []ResourceRef `json:"upstream"`
Downstream []ResourceRef `json:"downstream"`
}
ResourceRelations holds upstream and downstream resource references for a specific resource identified by app and entity_id.
type ReviewType ¶
type ReviewType int
const ( ReviewTypeUnknown ReviewType = iota ReviewMid ReviewEnd )
type SessionState ¶
type SessionState int
const ( SessionStateUnknown SessionState = iota SessionStart SessionDone SessionCancel )
type Topic ¶
func (Topic) Annotations ¶
func (Topic) Annotations() []schema.Annotation
type TopicState ¶
type TopicState int
type TriggerCronRule ¶
type TriggerCronRule struct {
Spec string `json:"spec"`
}
type TriggerType ¶
type TriggerType string
const ( TriggerCron TriggerType = "cron" TriggerManual TriggerType = "manual" )
type Url ¶
func (Url) Annotations ¶
func (Url) Annotations() []schema.Annotation
type User ¶
func (User) Annotations ¶
func (User) Annotations() []schema.Annotation
type ValueModeType ¶
type ValueModeType string
const ( ValueSumMode ValueModeType = "sum" ValueLastMode ValueModeType = "last" ValueAvgMode ValueModeType = "avg" ValueMaxMode ValueModeType = "max" )
type WorkflowRun ¶
func (WorkflowRun) Annotations ¶
func (WorkflowRun) Annotations() []schema.Annotation
func (WorkflowRun) Fields ¶
func (WorkflowRun) Fields() []ent.Field
func (WorkflowRun) Indexes ¶
func (WorkflowRun) Indexes() []ent.Index
type WorkflowRunState ¶
type WorkflowRunState int
WorkflowRunState represents the execution state of a local workflow engine run.
const ( WorkflowRunStateUnknown WorkflowRunState = iota WorkflowRunRunning WorkflowRunDone WorkflowRunFailed )
type WorkflowScriptLang ¶
type WorkflowScriptLang string
const (
WorkflowScriptYaml WorkflowScriptLang = "yaml"
)
type WorkflowState ¶
type WorkflowState int
const ( WorkflowStateUnknown WorkflowState = iota WorkflowEnable WorkflowDisable )
type WorkflowStepRun ¶
func (WorkflowStepRun) Annotations ¶
func (WorkflowStepRun) Annotations() []schema.Annotation
func (WorkflowStepRun) Fields ¶
func (WorkflowStepRun) Fields() []ent.Field
func (WorkflowStepRun) Indexes ¶
func (WorkflowStepRun) Indexes() []ent.Index
type WorkflowTriggerState ¶
type WorkflowTriggerState int
const ( WorkflowTriggerStateUnknown WorkflowTriggerState = iota WorkflowTriggerEnable WorkflowTriggerDisable )
Source Files
¶
- agent.go
- agent_plan.go
- agent_skill.go
- agent_skill_file.go
- agent_subagent.go
- agent_subagent_task.go
- app.go
- audit_log.go
- authentication.go
- behavior.go
- bot.go
- capability_binding.go
- channel.go
- chat_scheduled_task.go
- chat_scheduled_task_run.go
- chat_session.go
- chat_session_entry.go
- clip.go
- config.go
- connection.go
- counter.go
- counter_record.go
- data.go
- data_event.go
- event_consumption.go
- event_outbox.go
- fileupload.go
- form.go
- instruct.go
- llm_usage_record.go
- message.go
- notification_record.go
- notify_channel.go
- notify_rule.go
- notify_template.go
- oauth.go
- page.go
- page_data.go
- parameter.go
- pipeline_definition.go
- pipeline_definition_version.go
- pipeline_name.go
- pipeline_run.go
- pipeline_step_run.go
- platform.go
- platform_bot.go
- platform_channel.go
- platform_channel_user.go
- platform_user.go
- polling_state.go
- resource_link.go
- topic.go
- types.go
- url.go
- user.go
- workflow_run.go
- workflow_step_run.go