images/main/main.py
Copy
Ask AI
from autonomy import Agent, Node
async def main(node):
agent = await Agent.start(
node=node,
name="henry",
instructions="""
You are Henry, an expert legal assistant.
"""
)
reply = await agent.send("who are you?")
print(reply)
Node.start(main)
images/main/Dockerfile
Copy
Ask AI
FROM ghcr.io/build-trust/autonomy-python
COPY . .
ENTRYPOINT ["python", "main.py"]
autonomy.yaml
Copy
Ask AI
name: example009
pods:
- name: main-pod
public: true
containers:
- name: main
image: main