Prerequisites:
- Install
coagent
(see Installation). - Start a NATS server (see Distributed).
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
Prerequisites:
-
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