Skip to main content

Configuration File

Configure your agent environment with agent.config.yaml:

Configuration Options

Version

The configuration schema version. Always use "0.1" for now.

Image

The Docker image name and tag for your agent.

Build Configuration

  • python_version - Python version to use (3.12 or higher recommended)
  • python_project - Path to your pyproject.toml file
  • system_packages - List of system packages to install (e.g., git, ffmpeg, imagemagick)

Runtime Configuration

  • handler - Python module and class for your handler (format: module:ClassName)

Common System Packages

If your agent needs additional system dependencies, add them to system_packages:

When to Rebuild

You need to rebuild with sb0 build when you change:
  • system_packages - Adding or removing system dependencies
  • python_version - Changing Python version
  • handler - Changing handler module or class name
  • image - Changing Docker image name/tag
You do NOT need to rebuild when:
  • Adding Python dependencies with uv add (for local testing with sb0 run)
  • Editing handler code in handle_query.py
Use sb0 run --prompt for rapid iteration without rebuilding. Only rebuild when ready to deploy with sb0 push.

Next Steps