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
- To migrate a PostgreSQL database, see Database migrations.
- To run a complete local instance with Docker (
robotelos dev doctor,up,statusanddown), follow the Quickstart. - To run the gateway yourself, with tokens and more than one replica, see Run the gateway.
- For every command and flag, see the command-line reference.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.