workflow

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Generation uint64 `json:"generation,omitempty"`
	Action     string `json:"action"`
	State      State  `json:"state,omitempty"`
	ID         string `json:"id,omitempty"`
	Detail     string `json:"detail,omitempty"`
}

type Item

type Item struct {
	ID     string `json:"id"`
	Text   string `json:"text"`
	Status Status `json:"status,omitempty"`
	Detail string `json:"detail,omitempty"`
}

type State

type State struct {
	Title string `json:"title,omitempty"`
	Items []Item `json:"items"`
}

type Status

type Status string
const (
	Pending Status = "pending"
	Running Status = "running"
	Done    Status = "done"
	Failed  Status = "failed"
	Skipped Status = "skipped"
)

type Tool

type Tool struct {
	Events chan<- Event
}

func (Tool) Name

func (Tool) Name() string

func (Tool) Run

func (t Tool) Run(ctx context.Context, input map[string]any) (string, error)

func (Tool) Spec

func (Tool) Spec() llm.ToolSpec

Jump to

Keyboard shortcuts

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