Documentation
¶
Overview ¶
Package workagents runs owner-scoped text agents through GoRun's job queue.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
ID string `json:"id"`
OwnerID string `json:"owner_id"`
SourceID string `json:"source_id"`
Name string `json:"name"`
Description string `json:"description"`
SystemPrompt string `json:"system_prompt"`
ConnectionID string `json:"connection_id"`
Model string `json:"model"`
Enabled bool `json:"enabled"`
UnsupportedTools []string `json:"unsupported_tools"`
ProviderConfigured bool `json:"provider_configured"`
ExecutionKind string `json:"execution_kind"`
}
type Completion ¶
Completion is supplied by the native provider adapter; secrets never enter this module's database or HTTP responses.
type LinearDecision ¶
type LinearFlow ¶
type LinearFlow struct {
ID string `json:"id"`
OwnerID string `json:"owner_id"`
Plan LinearPlan `json:"plan"`
Step int `json:"step"`
Status string `json:"status"`
Result string `json:"result"`
ResultHash string `json:"result_hash"`
ErrorCode string `json:"error_code"`
ApprovedStep int `json:"approved_step"`
}
type LinearPlan ¶
type LinearPlan struct {
Name string `json:"name"`
Input string `json:"input"`
RequestKey string `json:"request_key"`
Steps []LinearStep `json:"steps"`
DraftTitle string `json:"draft_title,omitempty"`
DraftLocale string `json:"draft_locale,omitempty"`
}
LinearPlan deliberately does not accept imported graphs or conditions. An operator must map them explicitly without silently losing source semantics.
type LinearStep ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func New ¶
func New(complete Completion) *Module
func (*Module) Migrations ¶
type Run ¶
type Run struct {
ID string `json:"id"`
AgentID string `json:"agent_id"`
WorkflowID string `json:"workflow_id"`
Status string `json:"status"`
ErrorCode string `json:"error_code"`
Input string `json:"input"`
Result string `json:"result"`
CreatedAt string `json:"created_at"`
FinishedAt string `json:"finished_at"`
Historical bool `json:"historical"`
}
type Workflow ¶
type Workflow struct {
ID string `json:"id"`
AgentID string `json:"agent_id"`
Name string `json:"name"`
Input string `json:"input"`
Enabled bool `json:"enabled"`
IntervalSeconds int `json:"interval_seconds"`
NextRunAt string `json:"next_run_at"`
BlockedReason string `json:"blocked_reason,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.