types

package
v0.3.2 Latest Latest
Warning

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

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

Documentation

Overview

Package types defines shared enum types used by both the AST and IR packages. These are stable value types that represent DSL concepts common to both the authoring surface and the execution model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwaitMode

type AwaitMode int

AwaitMode represents the convergence strategy when a node receives inputs from multiple parallel branches.

const (
	AwaitNone       AwaitMode = iota // not a convergence point (or not explicitly set)
	AwaitWaitAll                     // wait for all incoming branches (default for convergence)
	AwaitBestEffort                  // proceed when possible, tolerate failures
)

func (AwaitMode) String

func (am AwaitMode) String() string

type FieldType

type FieldType int

FieldType enumerates the V1 schema field types.

const (
	FieldTypeString FieldType = iota
	FieldTypeBool
	FieldTypeInt
	FieldTypeFloat
	FieldTypeJSON
	FieldTypeStringArray
)

func (FieldType) String

func (ft FieldType) String() string

type InteractionMode

type InteractionMode int

InteractionMode controls how a node handles user interaction requests. It is available on agent, judge, and human nodes.

const (
	InteractionNone       InteractionMode = iota // no interaction capability (default for agent/judge)
	InteractionHuman                             // always pause for human input (default for human nodes)
	InteractionLLM                               // LLM auto-answers interaction questions
	InteractionLLMOrHuman                        // LLM decides whether to answer or escalate to human
)

func (InteractionMode) String

func (im InteractionMode) String() string

type MCPTransport

type MCPTransport int

MCPTransport identifies the transport used by an MCP server.

const (
	MCPTransportUnknown MCPTransport = iota
	MCPTransportStdio
	MCPTransportHTTP
	MCPTransportSSE
)

func (MCPTransport) String

func (mt MCPTransport) String() string

type RouterMode

type RouterMode int

RouterMode represents the routing strategy.

const (
	RouterFanOutAll  RouterMode = iota // fan out to all targets
	RouterCondition                    // conditional routing
	RouterRoundRobin                   // round-robin: cycle through targets one at a time
	RouterLLM                          // LLM-based routing decision
)

func (RouterMode) String

func (rm RouterMode) String() string

type SessionMode

type SessionMode int

SessionMode represents the LLM session context strategy.

const (
	SessionFresh         SessionMode = iota // new context
	SessionInherit                          // inherit parent session
	SessionArtifactsOnly                    // only persistent artifacts
	SessionFork                             // non-consuming fork from parent session
)

func (SessionMode) String

func (sm SessionMode) String() string

Jump to

Keyboard shortcuts

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