workflow

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	ID           string
	SystemPrompt string
}

Agent represents an agent that can perform steps in a workflow

func NewAgent

func NewAgent(id string, systemPrompt string) *Agent

NewAgent creates a new agent with the given ID and system prompt

type Step

type Step struct {
	Agent               *Agent
	Name                string
	Description         string
	Input               string
	Output              string
	NextStep            string
	HandoffInstructions string
}

Step represents a single step in a workflow

type Task

type Task struct {
	ID           string
	AgentID      string
	Dependencies []string
}

Task represents a single task in a workflow (renamed from Step)

type Workflow

type Workflow struct {
	Name        string
	Tasks       []Task
	FinalTaskID string
}

Workflow represents a sequence of steps to be executed

func New

func New(name string) *Workflow

New creates a new workflow with the given name

func (*Workflow) AddStep

func (w *Workflow) AddStep(step Step)

AddStep adds a step to the workflow and converts it to a task

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL