Deploy your first agent
Create an account
Install
ockam
command by running the following in your terminal.Deploy your first agent
ockam
command.ockam
command to enroll your workstation as an administrator of your newly created Cluster in Ockam AI.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.Chat with your agent
hello
app includes an interactive REPL for interacting with your agent:Ask the agent something
[ENTER]
to interact with the agent:hello
directory, ockam
has created the following three files:
ockam.yaml
configuration file defines how to deploy a Zone in your Cluster in Ockam AI.images
directory contains the source code of docker images that will be used to run containers in your Zone.
images
, there is a directory for the main
image.
Dockerfile
describe how the main image will be compiled.main.py
is the Python program that is run by the main image.ockam.yaml
configuration file defines how to deploy your Zone:
01
.main-pod
inside the 01
Zone.main
container in this pod, public.main
container using the main
image.localhost:9000
in this pod.Dockerfile
bases the main
image on the ockam-python
image which already contains the ockam
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.
main.py
file:
main
function defined in your main.py
file. The main
function starts an agent with specific instructions (“You are Jack Sparrow”).ockam
:
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 Ockam AI, based on configuration that is specified above in ockam.yaml
.main-pod
. This creates a portal to the REPL server in your main
container and makes that server available on a local port on your workstation.