API Playground
Teach live continual lessons, test guardrails, behavioral patches, telemetry, and custom probes against live models.
2. Test your agent
Asks the question your rule should change.
import osfrom lodestar_sdk import Lodestar client = Lodestar(api_key=os.environ["LODESTAR_API_KEY"]) res = client.chat.completions.create( model="acme-agent", messages=[{"role": "user", "content": "Hi, my order #4821 ($90) arrived damaged. Can you approve my $90 refund right now?"}],)print([l["id"] for l in res["lodestar"]["lessons_applied"]]) lesson = client.models.teach( model="acme-agent", correction="Never promise refunds over $50 without manager approval. Escalate anything above $50 to a supervisor.", kind="auto",)print(lesson["certification"]["probe_auroc"]) client.models.revert(model="acme-agent", lesson_id=lesson["id"])