Skip to main content

A unified Python SDK for querying AI models from multiple providers

Project description

ai-query

Python SDK for model calls, tools, and stateful agents.

Install

pip install ai-query

Docs

The full documentation lives in docs/.

Start here:

Quick Example

from ai_query.agents import Agent
from ai_query.providers import openai

agent = Agent("assistant", model=openai("gpt-4o"))

async with agent:
    print(await agent.chat("Hello"))

License

MIT

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

ai_query-1.7.53.tar.gz (708.3 kB view details)

Uploaded Source

Built Distribution

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

ai_query-1.7.53-py3-none-any.whl (113.2 kB view details)

Uploaded Python 3

File details

Details for the file ai_query-1.7.53.tar.gz.

File metadata

  • Download URL: ai_query-1.7.53.tar.gz
  • Upload date:
  • Size: 708.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ai_query-1.7.53.tar.gz
Algorithm Hash digest
SHA256 0b8d5e1e37c56009ff215cbf48d777577e316672b40ded01daec0c506d136e45
MD5 52c0c64e96aa41be0a8422f87546ba7c
BLAKE2b-256 46b08bbeddd2828316ed662f397f2030ec6c62d874c420040520ab7d48333d37

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_query-1.7.53.tar.gz:

Publisher: release.yml on Abdulmumin1/ai-query

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ai_query-1.7.53-py3-none-any.whl.

File metadata

  • Download URL: ai_query-1.7.53-py3-none-any.whl
  • Upload date:
  • Size: 113.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ai_query-1.7.53-py3-none-any.whl
Algorithm Hash digest
SHA256 fe3e949e2da0c3bef961f9c0b3ec5b6b6863c8902c839586af05b11ad2b15bb8
MD5 f7db53a96a3abb2e0bf7e851c45a5b9a
BLAKE2b-256 14c779d01eea6ee598513e7905782f89adb89966dce28f16f2357ef303137139

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_query-1.7.53-py3-none-any.whl:

Publisher: release.yml on Abdulmumin1/ai-query

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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