Firebase Studio 可使用 Gemini in Firebase 直接在您的工作区中提供代理开发体验。
您可以通过两种类型的工作区,在 Firebase Studio 中使用 Gemini in Firebase:
编码工作区(Code 视图):Firebase Studio 提供完整的编码工作区,通过代码编辑器内联和聊天功能提供 AI 辅助,以简化您的编码工作流。Gemini in Firebase 可以提供代码建议、生成代码、解释代码概念、更新项目文件、运行终端命令,以及解释命令输出。如需了解详情,请参阅 在 Firebase Studio 中试用 Gemini in Firebase。
[null,null,["最后更新时间 (UTC):2025-08-22。"],[],[],null,["\u003cbr /\u003e\n\nFirebase Studio provides an agentic development experience,\ndirectly in your workspace using Gemini in Firebase.\n\nYou can use Gemini in Firebase within Firebase Studio\nthrough two types of workspaces:\n\n- **Coding workspace (Code view):**\n Firebase Studio provides a full coding workspace that offers\n AI assistance to streamline your coding\n workflow---inline within your code editor and using\n chat. Gemini in Firebase can provide code\n suggestions, generate code, explain code concepts, update project files,\n run terminal commands, and interpret command output. Learn more at\n [Try Gemini in Firebase within Firebase Studio](/docs/studio/try-gemini).\n\n- **App Prototyping workspace (Prototyper view):**\n Firebase Studio provides this agent to assist you in prototyping\n apps without writing code. Generate Next.js web apps and publish to\n Firebase App Hosting with Genkit-powered agentic AI flows.\n Learn more at [Get started with\n the App Prototyping agent](/docs/studio/get-started-ai) and\n [Develop, publish, and monitor a full-stack web app with\n the App Prototyping agent](/docs/studio/solution-build-with-ai).\n\n| **Important:** Gemini in Firebase can\n| generate output that seems plausible but is\n| factually incorrect. It may respond with inaccurate information\n| that doesn't represent Google's views. Validate all output from\n| Gemini before you use it and do not use untested\n| generated code in production. Do not enter personally-identifiable\n| information (PII) or user data into the chat.\n\nHow Gemini in Firebase uses your data\n\nYour use of Firebase Studio is governed by the [Google Terms of\nService](https://policies.google.com/terms).\n\nHowever, note that your use of generative AI features within\nFirebase Studio is governed by the [Generative AI Prohibited Use\nPolicy](https://policies.google.com/terms/generative-ai/use-policy) and the\n[Gemini API Additional Terms of\nService](https://ai.google.dev/gemini-api/terms) (specifically governed by\n[Gemini API Additional Terms of Service: Unpaid\nServices](https://ai.google.dev/gemini-api/terms#unpaid-services)).\n\nTo block the use of your *prompts and responses* for model training, do not\nuse the App Prototyping agent, and do not use Gemini in Firebase within\nFirebase Studio. To block the use of your *code* for model training,\n[turn off code\ncompletion](/docs/studio/set-up-gemini#adjust-code-complete)\nand [code\nindexing](/docs/studio/set-up-gemini#adjust-code-indexing)\nin your Firebase Studio settings.\n\nSet up Gemini in Firebase\n\nFor detailed setup steps, see [Set up Gemini in Firebase](/docs/studio/set-up-gemini).\n\nPricing\n\nGemini in Firebase is available at no-cost while Firebase Studio\nis in preview. Learn more at [Gemini in Firebase\npricing](/docs/gemini-in-firebase#pricing).\n\nNext steps\n\n- [Set up Gemini in Firebase](/docs/studio/set-up-gemini)\n- [Try Gemini in Firebase](/docs/studio/try-gemini)"]]