Skip to main content

genkit

PyPI version Python versions Downloads License

Genkit is a Python SDK from Google. One API for generate, tools, structured output, and agents, plus a local Developer UI.

Vertex AI, Cloud Trace, and Firestore are there if you want them. So are OpenAI, Anthropic, Ollama, and Bedrock.

Install

uv add genkit genkit-google-genai
from pydantic import BaseModel, Field
from genkit import Genkit
from genkit_google_genai import GoogleAI

ai = Genkit(plugins=[GoogleAI()], model=GoogleAI.gemini_model('gemini-flash-latest'))


class Issue(BaseModel):
    title: str = Field(description='Short title')
    severity: str = Field(description='critical, warning, or info')
    suggestion: str = Field(description='How to fix it')


@ai.flow()
async def review(code: str) -> Issue:
    result = await ai.generate(
        prompt=f'Review this code:\n{code}',
        output_schema=Issue,
    )
    return result.output


async def main() -> None:
    print((await review('eval(user_input)')).model_dump_json(indent=2))


if __name__ == '__main__':
    ai.run_main(main())

See https://python.api.genkit.dev for more details.

Release files for genkit 0.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for genkit 0.11.0
File Size Uploaded
genkit-0.11.0.tar.gz 384.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for genkit 0.11.0
File Interpreter ABI Platform
genkit-0.11.0-py3-none-any.whl Python 3 none any Details

Total release size: 655.5 kB

Release files / genkit-0.11.0.tar.gz

Download URL genkit-0.11.0.tar.gz
Size 384.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2b0526b438609a49480db75a04d4108558bbdff6a8650fcbbf1a138b99295fa7
BLAKE2b-256 checksum
How to use checksums
e83f24a48288cb444f3caf15ddbc33c3a2f4e3b893e6367f7ea0f4aa0429d75f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.

Transparency log

Release files / genkit-0.11.0-py3-none-any.whl

Download URL genkit-0.11.0-py3-none-any.whl
Size 270.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91e9c1611992bba328fd9cc963ed134fc6e20aa4c190c3ded4457c65905e83e0
BLAKE2b-256 checksum
How to use checksums
874d6992caf06e3e54254fec640318c610a170cbec8b3c135b117f1f51eedc99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page