Develop AI-powered applications using Genkit in Python. Use when the user asks about Genkit, AI agents, flows, or tools in Python, or when encountering Genkit errors, import issues, or API problems.
71
88%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
uv for deps (install).genkit --version — install via npm install -g genkit-cli if missing.New projects: Setup (bootstrap + env). Patterns and code samples: Examples.
from genkit import Genkit
from genkit.plugins.google_genai import GoogleAI
ai = Genkit(
plugins=[GoogleAI()],
model='googleai/gemini-flash-latest',
)
async def main():
response = await ai.generate(prompt='Tell me a joke about Python.')
print(response.text)
if __name__ == '__main__':
ai.run_main(main())The Python SDK changes often — verify imports and APIs against the references here or upstream docs. On any error, read Common Errors first.
GoogleAI()), GEMINI_API_KEY in the environment.googleai/gemini-flash-latest (always-on-latest Flash alias; same pattern as other skills).ai.run_main(main()) for Genkit-driven apps (not asyncio.run() for long-lived servers started with genkit start — see Common Errors).genkit start and the Dev UI.genkit_fastapi_handler, parallel flows..prompt files and helpers.genkit start, Dev UI, checklist.c3bb9d5
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.