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.38.tar.gz (680.0 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.38-py3-none-any.whl (101.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_query-1.7.38.tar.gz
  • Upload date:
  • Size: 680.0 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.38.tar.gz
Algorithm Hash digest
SHA256 2b71644ccdc0010283dce616ca0b6389308e89ebe8f57c8ec183d6acc8f3d81d
MD5 89230ee8994dc606ce1674a663cc1f08
BLAKE2b-256 f20dc849cd1b60ae0162e4f030e55c8618736d800e0c50462c353ae188e0d72d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: ai_query-1.7.38-py3-none-any.whl
  • Upload date:
  • Size: 101.1 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.38-py3-none-any.whl
Algorithm Hash digest
SHA256 d0e1556001526c2d6cf759146e4c6fb3f7af584023285f15ef2b6176af861654
MD5 108a5e85aeee78525240846d3ab79571
BLAKE2b-256 a51060f9bd8322bcfc62b152acb922c281ad943a61ccfd1983d11cd99f547893

See more details on using hashes here.

Provenance

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