Skip to main content
No install needed beyond agentx-python itself. HttpEndpointAdapter uses requests, already a core dependency. Use it when your agent runs behind an HTTP service (FastAPI, LangServe, Flask, an n8n webhook, or anything else) instead of writing a Python function.

Usage

Endpoint contract

For every test case, the adapter sends:
Your service must respond with a 2xx and a JSON body. A non-2xx status or a request timeout is recorded as a failed result (rating 0), not a hard error that stops the run.

HttpEndpointAdapter parameters

The SDK (running locally) makes the request directly to your service. The AgentX API never touches your endpoint. Your endpoint must be reachable from wherever the script runs, not from AgentX’s servers.
A complete working example is available as http_endpoint_eval.py in the AgentX-Python repository.