Skip to main content
The Python template is the simplest way to build a Charm agent. It is a good fit for agents that call APIs, transform text, run lightweight data processing, or wrap an existing Python function.

Use Case

Use this template for a minimal Python agent with a small dependency surface.

Prerequisites

  • Python 3.10+.
  • Charm CLI.
  • Optional: Docker for isolated local runs.

Configuration Surface

The important charm.yaml fields are:
  • persona
  • interface
  • runtime.adapter
  • runtime.lifecycle
  • policies
Typical runtime configuration:
The entry point should resolve to an object or callable that the runner can invoke.

Expected Project Shape

Local Development

Run with a simple input:
Run with JSON input:
Validate before publishing:

Run and Publish

When to Choose Another Template