Skip to main content
deploy() turns a finished solution into running software. It adapts the code for a target, starts it, and hands back a Software object you can call and stop.

How does a deployment run?

  1. Selector: Analyzes code and chooses deployment strategy
  2. Adapter: Modifies code for the chosen strategy
  3. Runner: Executes the adapted code
  4. Software: Unified interface for running and managing

How do I deploy a solution?

Deployment strategies

Each value is a DeployStrategy enum member (DeployStrategy.MODAL, and so on); the enum is auto-generated from the strategies directory.

Software interface

All deployments return a Software instance with a unified interface:

What does a deployed call return?

All run() calls return a consistent format:

Configuration

Deployment info

Get details about the deployment:

How do I stop it?

What happens when a run fails?

Strategies

Details on each deployment strategy

Adding Strategies

Create custom deployment strategies
Related pages: Strategies · Adding Strategies · Deployment architecture Kapso is an open-source framework by Leeroo that builds software toward measurable goals through experiment campaigns. Source code: github.com/Leeroo-AI/kapso · Install: pip install leeroo-kapso · Every page as plain text: llms.txt.