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.12.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.12.0
File Size Uploaded
genkit-0.12.0.tar.gz 446.9 kB Details

Built distribution (wheel)

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

Total release size: 734.2 kB

Release files / genkit-0.12.0.tar.gz

Download URL genkit-0.12.0.tar.gz
Size 446.9 kB
Tags Source
SHA-256 checksum
How to use checksums
996d26d80b9fe65699fc7851b88a41463daa10521ca43a26d4714fdd46ac6247
BLAKE2b-256 checksum
How to use checksums
e34a0526eee706283844286d3c9280007b9818ad16129b287b791c3ba81dc006
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 24, 2026.

Transparency log

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

Download URL genkit-0.12.0-py3-none-any.whl
Size 287.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33fa4bd75c105ae61343502a316b4f7bf591868927226c835ecd32ec67313caa
BLAKE2b-256 checksum
How to use checksums
83f1dd8f9a23df52db75a25eaa63089ce16aa9d85659a97ebb746f25c73cd182
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 24, 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