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. |