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) Session ¶
func (host *Host) Session() *agent.SessionRuntime
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"`
}
Click to show internal directories.
Click to hide internal directories.