Documentation
¶
Overview ¶
Package repl hosts the repl tool: a scratch REPL that runs a Python or JavaScript snippet in a fresh subprocess and returns its output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type REPLTool ¶
type REPLTool struct {
// contains filtered or unexported fields
}
REPLTool runs a code snippet via a language interpreter with cmd.Dir set to the workdir captured at construction. One instance per agent. The interpreter process is fresh per call — no variables, imports, or definitions persist between invocations.
func NewREPL ¶
NewREPL constructs a REPLTool bound to workdir. An empty workdir means "use the process's current directory" (cmd.Dir = "" — exec defaults).
func (*REPLTool) Description ¶
func (*REPLTool) Schema ¶
func (t *REPLTool) Schema() json.RawMessage
Click to show internal directories.
Click to hide internal directories.