Skip to main content

Official Python SDK for ProofAgent™

Project description

ProofAgent™

PyPI version Python 3.10+ ProofAgent™

ProofAgent™ Python SDK

Official SDK for the ProofAgent™ AI agent evaluation platform. This is the supported Python client for running evaluations, retrieving reports, and integrating ProofAgent™ into your workflows.

Website: https://www.proofagent.ai

Install

pip install proofagent-sdk

The import package name is proofagent (the PyPI distribution name is proofagent-sdk).

Development install from a clone:

pip install -e ".[dev]"

Quick start: CLI

Create a starter config in the current directory:

proofagent init

This prints a short welcome message and writes proofagent.yaml (use -o / --output to pick another path). Set your API key in that file or via PROOFAGENT_API_KEY.

Quick start: Python

import asyncio
import os

from proofagent import ProofAgentClient, __version__

print(__version__)  # e.g. "0.1.0"


async def main() -> None:
    async with ProofAgentClient.from_env() as client:
        byo = os.environ.get("OPENAI_API_KEY", "").strip()
        run = await client.start_run(
            turn_count=3,
            llm_api_key=byo or None,
            llm_provider="openai" if byo else None,
            llm_model="gpt-4o-mini" if byo else None,
            agent_role="Helpful assistant",
        )
        run_id = run["data"]["run_id"]
        print("Started run:", run_id)


asyncio.run(main())

The client is async (async/await); use asyncio.run() from synchronous scripts.

Official SDK

This repository publishes proofagent-sdk on PyPI. Import the package as proofagent. It is the official Python SDK for ProofAgent™; use it when you want a maintained client aligned with the ProofAgent™ API.

Documentation and examples

Resource Description
docs/python-sdk-guide.md SDK guide
docs/quickstart.md Short snippets
examples/ Runnable examples

Build docs locally: make docs-serve

Configuration

Variable Role
PROOFAGENT_API_KEY API key (required for ProofAgentClient.from_env())
PROOFAGENT_BASE_URL API origin (default https://api.proofagent.ai)

See ProofAgentConfig in the package for timeouts and retries.

Package layout

  • src/proofagent/ProofAgentClient, ProofAgentConfig, ProofAgentError, types, CLI (proofagent command)
  • Python 3.10+, httpx for async HTTP

Developer commands

make install-dev
make lint
make test
make build

Publishing (maintainers)

Use a PyPI API token with twine. Build artifacts land in dist/.

python -m build
python -m twine check dist/*
python -m twine upload dist/*

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

proofagent_sdk-0.1.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

proofagent_sdk-0.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for proofagent_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 95194db0060989041ef075779c0f5c19d8109bc67ced587182932157a8f63fb3
MD5 39e9e446955c879d71259b2b4a37f04e
BLAKE2b-256 c845ace495533ce8c47b3305437c4aa8806d118b3f67d97cb315d0db5254e70f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for proofagent_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d012a98910e1b3e50232cc3a24fb425f74d58e02fdfc3b337c19724a043475f8
MD5 f2e9bd15c63b2f6d461d49f49e49d579
BLAKE2b-256 518018d1230320f636a1d739f4efbfbd68d5db5ed491cf88148d1478dca213aa

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