echoagent

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package echoagent is a trivial STATELESS_REPLAY api.Harness: it feeds the last input to the model through the host-mediated sink and lets the recorded completion be the output. It exists to close the agentsessions loop end-to-end (controller → harness → journal → replay) without a real model or tools, and is the harness used by the pod resume/fork demo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Model

Model is the echo "model": it returns the last message text prefixed with "echo:". It stands in for a real model provider; on replay the host serves the recorded completion instead of calling this.

Types

type Harness

type Harness struct{}

Harness is the echo BYOH. It holds no durable in-memory state beyond the event log, so it runs on any runtime (including a plain pod) and is reconstructed on resume/fork purely by replay.

func (Harness) Describe

func (Harness) Describe(ctx context.Context) (api.Descriptor, error)

Describe returns the static contract: an echo harness that resumes by stateless replay.

func (Harness) Run

func (Harness) Run(ctx context.Context, s *api.Start, sink api.EventSink) error

Run performs one execution: it sends the last input to the model via the sink (the only nondeterministic op), which the host records live and serves from the journal on replay.

Jump to

Keyboard shortcuts

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