Skip to content

Latest commit

 

History

History

ping-pong

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Ping-Pong

Quick Start

Using NATS Runtime

Prerequisites:

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

Using HTTP Runtime

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