Documentation
¶
Index ¶
- func NewDynamicSaga(name string, steps []SagaStep) *action.Builder[any, any]
- func NewLoopAction(bodyAction action.AnyAction, untilCondition string, maxTurns int) (*action.BuiltAction[any, any], error)
- func NewProjectionAction(code string) (*action.BuiltAction[any, any], error)
- func NewPromptNode(cfg PromptConfig) action.AnyAction
- func NewSupervisorNode(name string, compiler PipelineCompiler) action.AnyAction
- type ChildResult
- type ChildTask
- type PipelineCompiler
- type PromptConfig
- type PromptReq
- type PromptRes
- type SagaStep
- type SupervisorReq
- type SupervisorRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoopAction ¶
func NewProjectionAction ¶
NewProjectionAction compiles inline data shaping { key: expr } using precompiled expr bytecode. Supports standard expressions, JQ-style field prefixes ({ to: .user }), and root access ({ out: . }).
func NewPromptNode ¶
func NewPromptNode(cfg PromptConfig) action.AnyAction
NewPromptNode creates a reusable, pre-configured prompt template action.
func NewSupervisorNode ¶
func NewSupervisorNode(name string, compiler PipelineCompiler) action.AnyAction
NewSupervisorNode creates a main orchestrator node that compiles and controls child pipelines dynamically with panic isolation and leak protection.
Types ¶
type ChildResult ¶
type PipelineCompiler ¶
type PipelineCompiler interface {
CompilePipeline(expr string) (action.Executable, error)
}
type PromptConfig ¶
type SupervisorReq ¶
type SupervisorReq struct {
Tasks []ChildTask `json:"tasks" validate:"required"`
}
type SupervisorRes ¶
type SupervisorRes struct {
Total int `json:"total"`
Succeeded int `json:"succeeded"`
Failed int `json:"failed"`
Results []ChildResult `json:"results"`
}
Click to show internal directories.
Click to hide internal directories.