agent

command
v0.0.1-dev.20260520 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Mock agent HTTP server for e2e and local testing. Implements the same contract as the in-sandbox agent service: POST /v1/agent/run with JSON body matching controller/proposal/client.go (query, systemPrompt, outputSchema, context, timeout_ms). Response body is raw JSON matching controller/proposal/sandbox_agent.go expectations per step.

Request JSON must stay in sync with agentRunRequest + agentContext in controller/proposal/client.go. Response bodies must unmarshal into the per-step structs in controller/proposal/sandbox_agent.go (analysisResponse, executionResponse, verificationResponse, and the anonymous struct for Escalate).

After editing this binary, rebuild and restart the process so callers hit the new behavior.

Run: go run ./test/agent -addr :8080

Directories

Path Synopsis
cmd
schemadump command
Prints a full POST /v1/agent/run JSON body per phase.
Prints a full POST /v1/agent/run JSON body per phase.

Jump to

Keyboard shortcuts

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