Skip to content

Latest commit

 

History

History

cos

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

CoS Example

Prerequisites

Quick Start

Run Node.js Agent

Start the CoS server in one terminal:

python coagent/cos/app.py

Then run a Node.js agent in another terminal:

node examples/cos/cos.js

Finally, start a ping-pong client in the third terminal:

coagent server -H type:Ping

or start a stream-ping-pong client:

coagent stream_server -H type:Ping --chat

Run Python Agent

Start the CoS server in one terminal:

python coagent/cos/app.py

Then run a Python agent in another terminal:

python examples/cos/cos.py

Finally, start a ping-pong client in the third terminal:

coagent server -H type:Ping

or start a stream-ping-pong client:

coagent stream_server -H type:Ping --chat

Run Go Agent

Start the CoS server in one terminal:

python coagent/cos/app.py

Then build and run the Go agent:

cd examples/cos/goagent
go build
./goagent

Finally, start a ping-pong client in the third terminal:

coagent server -H type:Ping