Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Description string
ExpectedOutput string
Agent *agent.Agent
Context []*Task
Tools []tools.Tool
AsyncExecution bool
HumanInput bool
Callback callback.Callback
OutputFile string
// @sk-task guardrails#T1.2: guardrails validated after agent returns (AC-007)
Guardrails []guardrail.Guardrail
GuardrailMaxRetries int
}
Config defines the configuration for a Task.
type Task ¶
type Task struct {
Config
ID string
Processed bool
Failed bool
Error error
Output string
OutputCondition string
NextPaths map[string]string
}
Task represents a unit of work to be executed by an agent.
func (*Task) Execute ¶
Execute runs the task and returns its output, handling human input and context dependencies.
func (*Task) SetNextPath ¶
SetNextPath defines a conditional transition from this task to another task by ID.
Click to show internal directories.
Click to hide internal directories.