Skip to main content

Evaluate your AI agent or LLM/SLM on the Bharat AI Index / Atlas Agent Arena.

Project description

atlas-eval (Python)

Evaluate your AI agent / LLM on the Bharat AI Index — Atlas Agent Arena.

Requires a running Atlas instance (default http://localhost:3000). Start one with npm run dev in the repo, or docker run -p 3000:3000 ... bharat-ai-index.

Install

# until published to PyPI:
pip install -e sdk/python        # from the repo root
# or copy sdk/python/atlas_eval.py into your project

Use

from atlas_eval import evaluate_agent, AccuracyEval, PerformanceEval, ReliabilityEval

# whole-agent benchmark (sandboxed tasks, agentic score)
def my_agent(ctx):
    return {"tool": "fs_read", "args": {"path": "invoice_a.txt"}}
report = evaluate_agent(my_agent, base_url="http://localhost:3000")

# code-first evals (Agno-style)
AccuracyEval(agent=lambda q: "New Delhi", input="Capital of India?",
             expected_output="New Delhi").run(print_results=True)
PerformanceEval(func=lambda: my_model("ping"), num_iterations=5).run(print_results=True)
ReliabilityEval(tool_calls=["search"], expected_tool_calls=["search"]).run(print_results=True)

PerformanceEval and ReliabilityEval run fully locally (no server). evaluate_agent and AccuracyEval call the Atlas instance (and a configured judge model for accuracy).

See the top-level sdk/README.md for the protocol and JS equivalents.

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

atlas_eval-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

atlas_eval-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file atlas_eval-0.1.0.tar.gz.

File metadata

  • Download URL: atlas_eval-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for atlas_eval-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fe675df9fd47225e04affa23c9f5a85317868497db680d42a5fe45c4d9fcb17b
MD5 5f0ed9e42d73cc284f9633e0294ecafd
BLAKE2b-256 f0d33e66e048c905943bf66fdff9e96b0341d40d096a7e3d4e7bbc0f61af4f59

See more details on using hashes here.

File details

Details for the file atlas_eval-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: atlas_eval-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for atlas_eval-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c376fd6980bdd66045a219175b27490dc74ec87135b06f1bfc42ddb41626414d
MD5 6a05b103a8d4e4cf51be907098be7d91
BLAKE2b-256 5ed0b7e1ea896371f74eba7b901159ccf057f00698d46316607690c9a5fd20d8

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