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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_query-1.7.37.tar.gz
  • Upload date:
  • Size: 679.5 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.37.tar.gz
Algorithm Hash digest
SHA256 781332ff491821fe70d164980f1ec6a2683ef0aab8c17d3ae70f18b6f0f23b49
MD5 c230f6b2730fafbce320c3a2572ac3d7
BLAKE2b-256 56f9413d050b65829ee9e8a505e6d23c279b303b4555906c5004ef1120c94238

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: ai_query-1.7.37-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.37-py3-none-any.whl
Algorithm Hash digest
SHA256 13d31870b3dd101bc5a34220d51bd1652ec0a24adbba44507011024d602eddb3
MD5 8e0106060fd1bb478df444ef580ccd53
BLAKE2b-256 5cac95c6263a1dfa7db51c3555cf2a1a767d0d335d30664ae4c32bef48fb2bcc

See more details on using hashes here.

Provenance

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