Help us shape the future of Go! Take the 2026 Go Developer Survey

f7

package
v0.19.12 Latest Latest
Warning

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

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

Documentation

Overview

Package f7 builds the deterministic session the F7 RPC transcript runs on: a faux model replaying the scenario's responses with fixed clocks and entry ids, behind a session host whose session switches are no-ops. The runner drives it in process; `go build -tags conformance ./cmd/orb` serves it as RPC mode when ScenarioEnv names a scenario.

Index

Constants

View Source
const ScenarioEnv = "ORB_F7_SCENARIO"

Variables

This section is empty.

Functions

func Load

func Load(path, agentDir string) (*agent.SessionRuntime, error)

Load reads the scenario at path and builds its runtime on agentDir's settings.

func NewRuntime

func NewRuntime(scenario Scenario, settings *config.SettingsManager, sessionRoot string) (*agent.SessionRuntime, error)

NewRuntime builds the scenario's session runtime on settings, with an in-memory session rooted at sessionRoot.

Types

type Host

type Host struct{ Runtime *agent.SessionRuntime }

Host serves one runtime and accepts every session switch without one.

func (*Host) Dispose

func (host *Host) Dispose()

func (*Host) Fork

func (*Host) Fork(string, bool) (string, bool, error)

func (*Host) NewSession

func (*Host) NewSession(string) (bool, error)

func (*Host) Session

func (host *Host) Session() *agent.SessionRuntime

func (*Host) SwitchSession

func (*Host) SwitchSession(string) (bool, error)

type Scenario

type Scenario struct {
	SchemaVersion int               `json:"schemaVersion"`
	FixedNow      int64             `json:"fixedNow"`
	CWD           string            `json:"cwd"`
	SessionID     string            `json:"sessionId"`
	SystemPrompt  string            `json:"systemPrompt"`
	TokenSize     int               `json:"tokenSize"`
	Responses     []json.RawMessage `json:"responses"`
	Steps         []Step            `json:"steps"`
}

type Step

type Step struct {
	Name              string `json:"name"`
	Input             string `json:"input"`
	Framing           string `json:"framing"`
	ExpectedLineCount int    `json:"expectedLineCount"`
}

Jump to

Keyboard shortcuts

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