engine

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package engine defines the model-facing execution interface used by runtimes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies struct {
	Compiler PromptCompiler
	Events   EventLog
}

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func New

func New(deps Dependencies) (*Engine, error)

func (*Engine) PrepareTurn

func (e *Engine) PrepareTurn(ctx context.Context, req TurnRequest) (PreparedTurn, error)

type EventLog

type EventLog interface {
	Append(context.Context, events.Draft) (events.Event, error)
}

type PreparedTurn

type PreparedTurn struct {
	SessionID string
	TurnID    string
	AgentID   string
	Prompt    prompt.Compiled
}

type PromptCompiler

type PromptCompiler interface {
	Compile(context.Context, prompt.Request) (prompt.Compiled, error)
}

type TurnRequest

type TurnRequest struct {
	SessionID string
	TurnID    string
	AgentID   string
	UserText  string
	Fragments []prompt.Fragment
}

func (TurnRequest) Validate

func (r TurnRequest) Validate() error

Jump to

Keyboard shortcuts

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