CLI¶
A Command Line Interface for Agents is available through the agentctl script.
Warning
agentctl is experimental, expect its interface and implementation to change in the near future
To use the CLI, define first define an .env
file with the Agent configuration parameters. You can find an example at /example_agent/test_stories/.env.template
.
-
class
Agentctl
[source]¶ This is the base Agentclt class.
-
dev_server
()[source]¶ Start a development server to enable fulfillments.
>>> dotenv -f .env run agentctl upload
Make sure that your server is reachable from the prediction service (e.g. by using a ngrok tunnel if you are developing locally) on the host and port defined by the
I_WEBHOOK_HOST
andI_WEBHOOK_PORT
env variables; the remote agent will be configured to use those values inAgentctl.upload()
.
-