Skip to main content

A Python client library for interacting with the General Reasoning platform

Project description

AGI Client

A Python client library for interacting with the General Reasoning platform API.

The documentation is available here.

Installation

You can install the package using pip:

pip install agi

Making API Calls

Obtain an API key from the website. Then:

import agi

client = agi.Client(api_key=YOUR_API_KEY)

# Download reasoning traces and verifications as a .jsonl
client.data.get(task='math-word-problems', model='DeepSeek-R1')

Evaluating your reasoning model

The full evaluation guide is available here. A boilerplate example is shown below:

import agi
                
client = agi.Client("YOUR_API_KEY")
model = "USERNAME/MODEL_NAME"

# Retrieve test questions
data = client.evals.get(
    task='mathematical-brainteasers', 
    split='test'
)
question = data['questions']

# Submit model evaluations
for question in questions:
    reasoning_trace, answer = MyModel(
        system_prompt=question['system_prompt'],
        question=question['text']
    ) # Replace with your model logic
    client.evals.submit(
        id=question['id'],
        model=model,
        reasoning_trace=reasoning_trace,
        answer=answer
    )

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

agi-0.2.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

agi-0.2.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file agi-0.2.0.tar.gz.

File metadata

  • Download URL: agi-0.2.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.4

File hashes

Hashes for agi-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9b3f1bdf553afed7542e481c61a0b0ef3ba5500d9fdffe9afb4f8c6d2ec2ab02
MD5 76ca72836e5322ca860174814af186a5
BLAKE2b-256 e685471f103ceecc62d194dce0170283ad94bc7d12c78f9854d3b92e5b28976d

See more details on using hashes here.

File details

Details for the file agi-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: agi-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.4

File hashes

Hashes for agi-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42a6b18e25b16b01f19a23f6dfba9cda62657bb529ce49f3d7d0a9b6b56e7551
MD5 6b37ce7211ec022553de5039a90ca74c
BLAKE2b-256 8ee577224fc0a69d7f72249328e27ada8c72b79a0b944c3e782ae28ecd437e16

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