Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binary ¶ added in v0.2.1
Input/Output content is binary data (images, files, etc)
func (Binary) ContentType ¶ added in v0.2.1
type Cache ¶
type Cache struct {
Prompter
// contains filtered or unexported fields
}
type CacheMetadata ¶ added in v0.2.4
type CacheMetadata struct {
Key string `yaml:"key"`
Workflow string `yaml:"workflow"`
Job string `yaml:"job"`
Step string `yaml:"step"`
ContentType string `yaml:"content_type"`
Timestamp time.Time `yaml:"timestamp"`
}
CacheMetadata represents the YAML front matter in cache files
type Event ¶
type Event struct {
// Unique identity of the document
Key iosystem.Key
// Original workflow input
Document Gist
// Current input being processed
Current Gist
// Named step outputs
Steps map[string]Gist
}
Event represents an event processed by the workflow.
type ForEach ¶
type ForEach struct {
Node *ast.ForeachStepNode
// contains filtered or unexported fields
}
func NewForEach ¶
type Formatter ¶
type Formatter interface {
// Format converts Gist into serialized output.
// Input: results from agent as Gist
// Output: serialized data represented as Gist and its content type
Format(Gist) (string, Gist, error)
}
Formatter serializes results into output format.
Use cases:
- JSON: Structured arrays for downstream processing
- JSONL: Streaming-friendly newline-delimited JSON
- Text: Human-readable concatenation with custom delimiters
func NewFormatter ¶
func NewFormatter(format *ast.FormatNode) (Formatter, error)
NewFormatter creates formatter based on AST format node. Returns appropriate formatter or error for unknown types.
type JSONFormatter ¶
type JSONFormatter struct{}
JSONFormatter returns results as JSON array (default). Output: Go slice ([]any) that will be JSON-encoded downstream.
func NewJSONFormatter ¶
func NewJSONFormatter() *JSONFormatter
NewJSONFormatter creates a JSON array formatter
type Manifold ¶
Manifold is an agent state machine bound with input/output event types.
func NewManifold ¶
Create a new manifold instance
type Memento ¶
type Memento struct {
Prompter
// contains filtered or unexported fields
}
Memento stores the output of the Prompter into a variable.
func NewMemento ¶
type Router ¶
type Router struct {
Node *ast.RouterStepNode
Prompter Prompter
Conditions []cel.Program
Routes map[string]Prompter
Default Prompter
}
type Shell ¶
type TextFormatter ¶
type TextFormatter struct {
Delimiter string
}
TextFormatter concatenates results with configurable delimiter. Useful for human-readable summaries or simple text aggregation.
func NewTextFormatter ¶
func NewTextFormatter(delimiter string) *TextFormatter
NewTextFormatter creates a text formatter with custom delimiter