First, follow the instructions in Prerequisites and Installation.
Start a server in one terminal:
python examples/ping-pong/server.py
Then communicate with the agent in another terminal:
coagent server -H type:Ping
Install the following packages:
pip install hypercorn
pip install starlette
pip install sse-starlette
Start the HTTP runtime server:
python examples/ping-pong/http_runtime_server.py
Then start a server in one terminal:
python examples/ping-pong/server.py --server http://localhost:8000
Finally, communicate with the agent in another terminal:
coagent server -H type:Ping --server http://localhost:8000