Prerequisites:
- Install
coagent(see Installation). - Start a NATS server (see Distributed).
Start a server in one terminal:
python examples/ping-pong/server.pyThen communicate with the agent in another terminal:
coagent server -H type:PingPrerequisites:
-
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.pyThen start a server in one terminal:
python examples/ping-pong/server.py --server http://localhost:8000Finally, communicate with the agent in another terminal:
coagent server -H type:Ping --server http://localhost:8000