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

scripted

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package scripted provides an Agent that replays a fixed list of decisions. It exists so the runtime can be exercised deterministically without a model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Complete

func Complete(result string) agentrt.Decision

Complete builds a complete decision.

func Fail

func Fail(message string) agentrt.Decision

Fail builds a fail decision.

func ToolCall

func ToolCall(tool, args, reason string) agentrt.Decision

ToolCall builds a tool_call decision from a JSON argument string.

Types

type Agent

type Agent struct {
	Decisions []agentrt.Decision
}

Agent returns Decisions[i] for the step with index i. It returns an error once the script is exhausted, which the driver records as an agent error.

func (*Agent) Decide

Decide implements agentrt.Agent.

Jump to

Keyboard shortcuts

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