Skip to main content

Automatically stress-test your AI apps. Sign up for an api key at withjanus.com

Project description

Janus Python SDK Documentation

This repository contains the official documentation for the Janus Python SDK - a comprehensive AI agent simulation testing framework.

What is Janus?

Janus Python SDK helps you evaluate AI applications through automated simulations. It's designed to stress-test your AI agents with thousands of simulations, each testing different personalities, intents, and edge cases.

Quick Start

  1. Install the SDK:

    pip install janus-python-sdk
    
  2. Get an API Key: Contact team@withjanus.com

Eval Credits

Each simulation consumes one eval credit. When your account runs out, run_simulations / arun_simulations raise JanusCreditsExhaustedError with remaining, needed, and message attributes. Contact team@withjanus.com to top up. You can check your balance in the dashboard badge.

from janus_sdk import run_simulations, JanusCreditsExhaustedError

try:
    results = await run_simulations(num_simulations=10, max_turns=5, target_agent=my_factory, api_key="...")
except JanusCreditsExhaustedError as e:
    print(f"Out of credits: {e.remaining} left, needed {e.needed}. Email team@withjanus.com.")

Need Help?

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

janus_python_sdk-0.6.1.tar.gz (9.4 MB view details)

Uploaded Source

Built Distribution

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

janus_python_sdk-0.6.1-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file janus_python_sdk-0.6.1.tar.gz.

File metadata

  • Download URL: janus_python_sdk-0.6.1.tar.gz
  • Upload date:
  • Size: 9.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.5

File hashes

Hashes for janus_python_sdk-0.6.1.tar.gz
Algorithm Hash digest
SHA256 53e115756f920f2926af8a49a8871fa72a6039f0a5acadbd024dfa8113708f3d
MD5 2b6f7d806df6ccaa59f787fe85f5ab04
BLAKE2b-256 6d3d405da88266b015308ee2f4fc44e868d8db5944f240fd633d5e805ffc3c41

See more details on using hashes here.

File details

Details for the file janus_python_sdk-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for janus_python_sdk-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bbc9a8cddc0e120292c7343babff9e984793f724ac4b1aa365048cf8669386db
MD5 b10b0ee752563a389903a4a4785f3dde
BLAKE2b-256 53ec9853e87531c45121119696a8c5efc1a6f9e0100677f57b250f2ad96385af

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