Catalog PyPI
Back to packageRELEASE DETAILS

0.2.1

PyPI

agi

A Python client library for interacting with the General Reasoning platform

Published12 May 2025
Direct dependencies1
Transitive dependenciesNot calculated

README

Version 0.2.1 documentation

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
    )

Running our verification and grading models

Read more about our grader and verifier here

import agi 
 
client = agi.Client(api_key=YOUR_API_KEY)
 
response = client.verify.create(
  model="endeavour-preview",
  question="Are Dyson spheres feasible to build?",
  model_answer="Yes"
)
import agi 
 
client = agi.Client(api_key=YOUR_API_KEY)
 
response = client.grade.create(
  model="endeavour-preview",
  question="Are Dyson spheres feasible to build?",
  model_answer="Yes",
  ground_truth_answer="No",
)

License

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
requests
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.7",
  "evaluation": "NOT_EVALUATED"
}
requests>=2.31.0runtime

Distribution files

2 collected
agi-0.2.1-py3-none-any.whl

bdist_wheel · 4.81 KB · Python py3

Source file
agi-0.2.1.tar.gz

sdist · 4.78 KB · Python source

Source file

Repository

PENDING
generalreasoning/agi

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:04 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:070834e15f014effddb63d8142f167f7eb4b90e5210bb1f234873310a2ea07f7

Other collected versions

View all collected versions →