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.35.tar.gz (678.4 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.35-py3-none-any.whl (100.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_query-1.7.35.tar.gz
  • Upload date:
  • Size: 678.4 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.35.tar.gz
Algorithm Hash digest
SHA256 e311f85fab4e7f765d91047e367d7f755f2c1808c032f5bd66c7fd9e7676cc46
MD5 094c272e7c4d092db6b704d4a30a5b2a
BLAKE2b-256 26e90c3063d044c1036322f6a9f7cf9681eb6b289477d3984767ccda5955bb6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_query-1.7.35.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.35-py3-none-any.whl.

File metadata

  • Download URL: ai_query-1.7.35-py3-none-any.whl
  • Upload date:
  • Size: 100.9 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.35-py3-none-any.whl
Algorithm Hash digest
SHA256 00e2d29b86a353634531ad02b50526a0b82dd1b1d3682d6605ba882c00b12d93
MD5 83bf2c1519538a323e2374e3b04e0d7a
BLAKE2b-256 ab02039d0c67a4b119793a3edfecdc381084260bc65c769a1a061301a2f0b749

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_query-1.7.35-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