Documentation
¶
Overview ¶
Command server serves an agent over HTTP: the session API, the Vercel AI SDK useChat endpoint, AG-UI and A2A.
Set AGENTX_SERVER_TOKEN to a random secret in the server and client environments.
go run ./cmd/server # in agentx-examples
curl -N localhost:8080/sessions/demo/runs -H "Authorization: Bearer $AGENTX_SERVER_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"input":"Deploy the latest build to staging"}'
curl localhost:8080/sessions/demo -H "Authorization: Bearer $AGENTX_SERVER_TOKEN"
curl -N localhost:8080/sessions/demo/resume -H "Authorization: Bearer $AGENTX_SERVER_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"approvals":{"<call_id>":{"approved":true}}}'
Click to show internal directories.
Click to hide internal directories.