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.45.tar.gz (696.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.45-py3-none-any.whl (108.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_query-1.7.45.tar.gz
  • Upload date:
  • Size: 696.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.45.tar.gz
Algorithm Hash digest
SHA256 bdb3ad18b3c196a8b9356e5d11435a87fac752e6c06992afc28860509ae3580c
MD5 dc4a177afe0ddd62eff5253c10c020cb
BLAKE2b-256 fdd338454d89a71985eb86df84a2eadb3f41f0b52b2efa64cc91a6a6b702d24c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: ai_query-1.7.45-py3-none-any.whl
  • Upload date:
  • Size: 108.8 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.45-py3-none-any.whl
Algorithm Hash digest
SHA256 c05887a6c29d12f362049904a175108d8566972e6add1878c7d7358d7465458e
MD5 c9bc5dbddc9fee2ac04f14ee10048aea
BLAKE2b-256 a353c55889c28912692bfa273d05593539de5ba8619626a5f54f652e889d78fe

See more details on using hashes here.

Provenance

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