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_KEYenvironment variable. - Converts Google usage metadata into AccuralAI's standard
Usagepayload.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fdf53e1846fa40efbd5380ac34415aa5e2a59943b979627326e2dccc944131e
|
|
| MD5 |
593d08a7aed90aa67937164160a6413c
|
|
| BLAKE2b-256 |
f0f0ae2c9185712e31c9dd87a70c630ca844a6f62e433d18578b6d6a468b2152
|
File details
Details for the file accuralai_google-0.2.1-py3-none-any.whl.
File metadata
- Download URL: accuralai_google-0.2.1-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c60981545f24bfb0aa739dd66dda5b64fe2d0b4a2f36104e2beb89d2ce430783
|
|
| MD5 |
05729e5a289860c3b1edc62185765258
|
|
| BLAKE2b-256 |
76f9a828957a8d8e3d741bf617e806f7676a03a3776e5d60bccf5bd1f45b2bfd
|