Skip to main content

Experiment runner for Lemma — fetch test cases, run agents, record results

Project description

uselemma-experiments

Run experiments against Lemma test cases — fetch cases, run your agent, record results and traces.

Installation

pip install uselemma-experiments

For local development in the SDK monorepo, use uv (workspaces are already configured at the repo root):

uv sync

Quick Start

from uselemma_experiments import LemmaExperimentRunner

runner = LemmaExperimentRunner()

await runner.run_experiment(
    experiment_id="exp_abc123",
    strategy_name="baseline",
    agent=lambda input: my_agent(input),
)

Environment Variables

Variable Description
LEMMA_API_KEY Your Lemma API key
LEMMA_PROJECT_ID Your Lemma project ID
LEMMA_API_URL Optional. Override API base URL (e.g. http://localhost:8000 for local dev)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uselemma_experiments-0.1.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uselemma_experiments-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file uselemma_experiments-0.1.1.tar.gz.

File metadata

  • Download URL: uselemma_experiments-0.1.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for uselemma_experiments-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a4762536b53212f1004ab1b502719521304a406fd59107934ce2eb051ed322ed
MD5 24f0cc15e17ac52732b475e1a62ee1c6
BLAKE2b-256 7c3358bf430fdee379e1dda31ff7180de329d7d50274672c282b1cafb55a32b3

See more details on using hashes here.

File details

Details for the file uselemma_experiments-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: uselemma_experiments-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for uselemma_experiments-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 25d381b5b7113b7ad0ff3a547bae3492ed47dc99b275ef44ace40886df9d21e2
MD5 662b58f337bd5e438be918ca0c840614
BLAKE2b-256 bad4eb6cd54137bec1db47e2b8c38b5b2bf72659402860eb051cec466dcc20ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page