Chat from a terminal

Start the local stack and chat with its mock agent from a terminal, over each transport.

All commands run from the repository root. Build the tools once with go build, or run them with go run.

Chat with a server in a terminal

Start the local stack with its mock agent. It needs Docker for PostgreSQL:

go run ./runtime/cmd/robotelos dev up

In a second terminal, open a conversation over SSE, the default transport (the client reads the token that dev up saved):

go run ./protocol/cmd/robotelos-chat -transport sse

Type a message and the mock agent replies. Type a message that starts with run to see an approval:

run ls -la

The agent asks for approval before it “runs” the command. Answer it from a client; the next example shows how.

Try the other transports and tokens:

go run ./protocol/cmd/robotelos-chat -transport ws                      # WebSocket
go run ./protocol/cmd/robotelos-chat -transport grpc                    # gRPC
go run ./protocol/cmd/robotelos-chat -token demo-bob                    # the second demo principal

Next steps