Skip to main content

Google GenAI backend adapter for the AccuralAI orchestration pipeline.

Project description

AccuralAI Google Backend

This package provides the Google GenAI backend adapter for the AccuralAI orchestration core. It wraps the official google-genai client so the orchestrator can target Gemini models with the same pipeline used for other local or remote backends.

Features

  • Async-compatible adapter that internally uses google-genai's synchronous client.
  • Configurable model, generation parameters, safety settings, and client options.
  • Pulls API keys from configuration or the GOOGLE_GENAI_API_KEY environment variable.
  • Converts Google usage metadata into AccuralAI's standard Usage payload.

Installation

pip install accuralai-google

Configuration

From accuralai-core, reference the backend ID you register under backends:

[backends.google]
plugin = "google"
[backends.google.options]
model = "gemini-1.5-pro"
generation_config = { temperature = 0.7 }

Provide an API key either in the options (api_key = "...") or via GOOGLE_GENAI_API_KEY.

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

accuralai_google-0.2.1.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

accuralai_google-0.2.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file accuralai_google-0.2.1.tar.gz.

File metadata

  • Download URL: accuralai_google-0.2.1.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for accuralai_google-0.2.1.tar.gz
Algorithm Hash digest
SHA256 5fdf53e1846fa40efbd5380ac34415aa5e2a59943b979627326e2dccc944131e
MD5 593d08a7aed90aa67937164160a6413c
BLAKE2b-256 f0f0ae2c9185712e31c9dd87a70c630ca844a6f62e433d18578b6d6a468b2152

See more details on using hashes here.

File details

Details for the file accuralai_google-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for accuralai_google-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c60981545f24bfb0aa739dd66dda5b64fe2d0b4a2f36104e2beb89d2ce430783
MD5 05729e5a289860c3b1edc62185765258
BLAKE2b-256 76f9a828957a8d8e3d741bf617e806f7676a03a3776e5d60bccf5bd1f45b2bfd

See more details on using hashes here.

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