1
Create an account
Sign up for an account with Autonomy to create your new Cluster.
2
Install
Install
autonomy
command by running the following in your terminal.3
Deploy your first agent
Ensure you have Docker installed and running on your workstation before running the
autonomy
command.autonomy
command to enroll your workstation as an administrator of your newly created Cluster in Autonomy.hello
app and create a production-ready deployment Zone in your Cluster on our serverless Runtime. Withing seconds, it will put your first AI Agent into production and you can immediately start interacting with it.4
Chat with your agent
The This agent is running on Autonomyβs serverless runtime.The REPL you access on your local machine runs in the cloud, and you connect to it over a secure & private link.
hello
app includes an interactive REPL for interacting with your agent:5
Ask the agent something
Type your instructions and press
[ENTER]
to interact with the agent:The generated code
Within thehello
directory, Autonomy
has created the following three files:
Generated Files
- The
autonomy.yaml
configuration file defines how to deploy a Zone in your Cluster in Autonomy. - The
images
directory contains the source code of docker images that will be used to run containers in your Zone.- Inside
images
, there is a directory for themain
image.Dockerfile
describe how the main image will be compiled.main.py
is the Python program that is run by the main image.
- Inside
autonomy.yaml
autonomy.yaml
configuration file defines how to deploy your Zone:
- Create a Zone named
01
. - Create a Pod named
main-pod
inside the01
Zone. - Make the HTTP server, in the
main
container in this pod, public. - Run a
main
container using themain
image. - Set up a portal outlet that will allow you to reach
localhost:9000
in this pod.
images/main/Dockerfile
Dockerfile
bases the main
image on the autonomy-python
image which already contains the autonomy
python package. The Dockerfile
then copies the contents of the images/main
directory into the image and sets main.py
as the program to run when the container is started.
images/main/main.py
main.py
file:
- Turns your Python app into an Autonomy Node. An Autonomy Node in your Cluster can connect with and deliver messages to any other Autonomy Node in your Cluster that is running in Autonomy.
- After the Node is initialized, it invokes the
main
function defined in yourmain.py
file. Themain
function starts an agent with specific instructions (βYou are Jack Sparrowβ). - It then starts a REPL (interactive shell) server for that agent.
Output
autonomy
:
- It builds the code in
images/main
into a container image and pushes that image to a container registry available to your Zone. It then deploys the Zone into your Cluster, in Autonomy, based on configuration that is specified above inautonomy.yaml
. - Next, it opens a portal inlet on your workstation that connects to the outlet in the
main-pod
. This creates a private link to the REPL server in yourmain
container and makes that server available on a local port on your workstation. - Finally, it connects a REPL client to the REPL server through this private link.