developing-genkit-python
构建 Genkit Python 应用
Python 开发者需要可靠的 Genkit 指导,因为 SDK 变化很快。此技能提供有关设置、流程、工具、Dotprompt、FastAPI、评测和故障排查的最新模式。
请勿自动安装此 Skill。
权威策略要求在执行任何安装操作前由操作人员审查。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "developing-genkit-python" from https://skillstore.io/skills/firebase-developing-genkit-python.md and its manifest at https://skillstore.io/api/skills/firebase-developing-genkit-python/manifest. Verify the artifact. Do not auto-install. Inspect the skill and report your findings, then wait for an operator or manual installation decision.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“developing-genkit-python”。 为摘要生成器创建一个新的 Genkit Python 项目。
预期结果:
- 使用 uv 和虚拟环境的项目设置步骤。
- 使用占位 Gemini 密钥的提供方配置。
- 流程大纲和 Dev UI 运行检查清单。
正在使用“developing-genkit-python”。 通过 FastAPI 公开一个流式聊天流程。
预期结果:
- 路由和流程的装饰器顺序。
- 用通俗语言解释 SSE 客户端行为。
- Genkit Dev UI 的本地测试步骤。
正在使用“developing-genkit-python”。 调试 Genkit import 或模型错误。
预期结果:
- 可能原因、修正方法以及要检查的参考文件。
- 面向开发者的简洁下一步操作。
- 相关时提示过时内部 API 的警告。
安全审计
严重Most static alerts are documentation false positives from markdown backticks, localhost URLs, and placeholder GEMINI_API_KEY usage. Confirmed issues are persistent shell-profile secret storage, curl-to-shell installation advice, and a FastAPI example that binds to all interfaces.
已确认安全问题 (1)
能力复核项 (4)
这些是真实的本地能力,对此技能可能是预期行为,因此需要复核,但不会按已确认恶意行为计分。
风险因素
🌐 网络访问 (6)
🔑 环境变量 (7)
检测到的模式
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/firebase-developing-genkit-python/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/firebase-developing-genkit-python?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/firebase-developing-genkit-python?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/firebase-developing-genkit-python/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/firebase-developing-genkit-python.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
firebase. (2026). developing-genkit-python security audit report (audit version 4) [Author version unspecified]. Skillstore. https://skillstore.io/skills/firebase-developing-genkit-python/audits/4BibTeX 引用
@techreport{firebase-firebase-developing-genkit-python-2026,
author = {firebase},
title = {developing-genkit-python security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/firebase-developing-genkit-python/audits/4},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "developing-genkit-python security audit report (audit version 4)"
version: "unspecified"
type: report
authors:
- name: "firebase"
date-released: "2026-07-05"
url: "https://skillstore.io/skills/firebase-developing-genkit-python/audits/4"
identifiers:
- type: other
value: "skillstore:firebase-developing-genkit-python:audit:4"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
启动 Genkit Python 项目
使用 uv 创建新项目,安装 Genkit 包,配置提供方,并运行 Dev UI。
使用 FastAPI 提供 AI 流程
通过 FastAPI 路由公开 Genkit 流程,流式传输响应,并测试本地端点。
提升 AI 应用质量
组织提示词,添加评测器,使用结构化输出,并诊断常见 Genkit 错误。
试试这些提示
创建一个使用 Google AI 的 Genkit Python 入门应用。包括设置步骤、流程结构和 Dev UI 测试说明。
向我的 Genkit 流程添加一个由 Pydantic 支持的工具。解释 schema、decorator 和常见 Gemini 参数错误。
为此 Genkit 流程设计一个流式 FastAPI 端点。包括装饰器顺序、分块行为和本地验证步骤。
审查这个 Genkit Python 项目的 API 不匹配、提示词组织、评测覆盖率和生产就绪情况。优先给出可执行的修复措施。
最佳实践
- 根据包含的参考资料或上游文档验证 import 和 API 名称。
- 不要将 API 密钥放入源代码管理、shell 配置文件、截图和共享日志中。
- 先在 Dev UI 中测试流程,再添加 FastAPI 服务或评测自动化。
避免
- 使用内部 Genkit 模块而不是公开包路径。
- 将工具参数定义为裸标量值,而不是 Pydantic 模型。
- 在没有明确需要的情况下,将本地开发服务器绑定到所有接口。