Skip to main content

Installation

Requirements: Python 3.8 or higher, requests >= 2.28.0, pydantic >= 2.0.0.

Initialize the SDK

Get your API key from Lyzr Studio.

Complete workflow

The example below runs a full simulation and hardening cycle for an agent.

Resources

Each resource is accessible as a property on the ASIMEngine instance.

Agent hardening

harden_agent() analyzes failures from a completed evaluation round and returns the original and improved agent configurations. Pass evaluation_ids to target specific failures, or omit it to analyze all failures from the round.
continue_run() starts a new evaluation round (round number + 1) using the improved instructions. Repeat until all simulations pass.

Error handling

The SDK raises typed exceptions for each failure mode.