genkit
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.
Building with a coding agent? Install the Genkit Python skill first.
npx skills add genkit-ai/skills --skill developing-genkit-pythonIt teaches your agent the current Genkit Python APIs and common gotchas. Source, manual install and skills for other languages: genkit-ai/skills.
Install
uv add genkit genkit-google-genai
from pydantic import BaseModel, Field
from genkit import Genkit, PublicError
from genkit_google_genai import GoogleAI
ai = Genkit(plugins=[GoogleAI()], model=GoogleAI.gemini('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,
)
if result.output is None:
raise PublicError(
'INTERNAL',
f'Model did not return an Issue (finish_reason={result.finish_reason}, error={result.error})',
)
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.
Metadata
Release files for genkit 0.13.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| genkit-0.13.0.tar.gz | 716.9 kB | With provenance | Details for genkit-0.13.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| genkit-0.13.0-py3-none-any.whl | Python 3 | none | any | Details for genkit-0.13.0-py3-none-any.whl |
Total release size: 1.1 MB
Release files / genkit-0.13.0.tar.gz
| Download URL | genkit-0.13.0.tar.gz |
|---|---|
| Size | 716.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e574fdeb0a1a67d6550165e553d6627f4aefacfba7660c19a73fc8a281971b3
|
|
BLAKE2b-256 checksum How to use checksums |
fb418c48693589ff06a993144348422998fe58dde1368957e8ebce2e5ea59208
|
| 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 Nov 5, 2026.
Transparency logRelease files / genkit-0.13.0-py3-none-any.whl
| Download URL | genkit-0.13.0-py3-none-any.whl |
|---|---|
| Size | 382.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c4d43ad92b5f868a61c7cd5570b8de81894bd2bd6044365ba9d516eed3ffb488
|
|
BLAKE2b-256 checksum How to use checksums |
efd7bd46f79774b477308718fdd6daff0b612e6fa3042339b2ade18927880d15
|
| 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 Nov 5, 2026.
Transparency logSecurity for genkit 0.13.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for genkit-0.13.0.tar.gz
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 Nov 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.