Autonomous actors powered by large language models.
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.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 name henry
with specific instructions. It then sends a message to this agent and prints the agent’s reply.Node.start
also starts an HTTP server within this Python app.ockam
command.ockam
command in the directory that has the ockam.yaml
, it will:
images/
and push them to a container registry that is available to your Zone.ockam.yaml
.main-pod
that is running in your Zone in Ockam AI.http://localhost:3000
.
The http server on the main-pod is available at: https://25df35de87aa441b88f22a6c2a830a17-01.ai.ockam.networkTo return a list of all agents send a
GET
request to the /agents
endpoint:
POST
request to the /agents/<name>
endpoint:
stream=true
parameter to the /agents/<name>
endpoint will stream chunked responses from the agent in real-time: