Documentation
¶
Overview ¶
Package platform implements a deterministic orchestration runtime for conversational workflows driven by structured domain definitions.
Index ¶
- func ValidateRegistry(reg *Registry) error
- type CandidateBuilder
- type Capability
- type Domain
- type Gate
- type GateResult
- type Interpreter
- type InterpreterInput
- type InterpreterOutput
- type Registry
- type Relationship
- type RenderedResponse
- type Renderer
- type Runtime
- type Scenario
- type StateDefinition
- type StateMachine
- type Task
- type TaskRequest
- type TaskStatus
- type Template
- type TemplateRenderer
- type Tool
- type ToolCall
- type ToolResult
- type Trace
- type TraceStep
- type TurnInput
- type TurnOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateRegistry ¶
Types ¶
type CandidateBuilder ¶
type Capability ¶
type Domain ¶
type Domain struct {
ID string
Aliases []string
Examples []string
NegativeExamples []string
Capabilities map[string]Capability
Relationships []Relationship
}
type GateResult ¶
type GateResult struct {
Blocked bool
ForcedTasks []TaskRequest
Signals []string
}
type Interpreter ¶
type Interpreter interface {
Interpret(ctx context.Context, input InterpreterInput) (InterpreterOutput, error)
}
type InterpreterInput ¶
type InterpreterOutput ¶
type InterpreterOutput struct {
Tasks []TaskRequest
PrimaryTaskIndex int
FillerTemplateID string
}
type Relationship ¶
type RenderedResponse ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func New ¶
func New(registry *Registry, candidateBuilder CandidateBuilder, interpreter Interpreter, renderer Renderer) (*Runtime, error)
func (*Runtime) WithIDFactory ¶
type StateDefinition ¶
type StateMachine ¶
type StateMachine struct {
States map[string]StateDefinition
}
type TaskRequest ¶
type TaskStatus ¶
type TaskStatus string
const ( TaskPending TaskStatus = "pending" TaskActive TaskStatus = "active" TaskCompleted TaskStatus = "completed" TaskCancelled TaskStatus = "cancelled" )
type TemplateRenderer ¶
type TemplateRenderer struct{}
type ToolResult ¶
type TurnOutput ¶
type TurnOutput struct {
SessionID string
State string
Queue []Task
Responses []RenderedResponse
Trace Trace
}
Click to show internal directories.
Click to hide internal directories.