Skip to content

docs: add example Flask server for HttpAgent protocol#120

Merged
abrichr merged 1 commit into
mainfrom
feat/http-agent-example
Mar 16, 2026
Merged

docs: add example Flask server for HttpAgent protocol#120
abrichr merged 1 commit into
mainfrom
feat/http-agent-example

Conversation

@abrichr
Copy link
Copy Markdown
Member

@abrichr abrichr commented Mar 16, 2026

Summary

  • Minimal reference Flask server implementing the HttpAgent POST /act contract
  • Shows request/response schema, screenshot decoding, and action format
  • Copy predict() function and replace with your model inference
python examples/http_agent_server.py
openadapt-evals run --agent http --agent-endpoint http://localhost:8080

Test plan

🤖 Generated with Claude Code

Minimal reference implementation showing the POST /act request/response
contract. Copy-and-replace the predict() function with your model.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@abrichr abrichr merged commit 0d6fa24 into main Mar 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant