Documentation
¶
Overview ¶
Package agentstep adapts goagent RunDetailed calls into workflowkit steps.
The adapter is optional host glue: it preserves the agent run ID and lets callers map agent results into workflow statuses such as succeeded, failed, or waiting_approval.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Step)
func WithResultMapper ¶
func WithResultMapper(mapper ResultMapper) Option
type RequestBuilder ¶
type RequestBuilder func(workflowkit.WorkflowRun) agentcore.RunRequest
type ResultMapper ¶
type ResultMapper func(workflowkit.WorkflowRun, *agentcore.RunResult) workflowkit.StepResult
type Step ¶
type Step struct {
// contains filtered or unexported fields
}
func (Step) Run ¶
func (s Step) Run(ctx context.Context, run workflowkit.WorkflowRun) (workflowkit.StepResult, error)
Click to show internal directories.
Click to hide internal directories.