Error Types

Genkit knows about two specialized types: GenkitError and UserFacingError. GenkitError is intended for use by Genkit itself or Genkit plugins. UserFacingError is intended for ContextProviders and your code. The separation between these two error types helps you better understand where your error is coming from.

Genkit plugins for web hosting (e.g. @genkit-ai/express or @genkit-ai/next) SHOULD capture all other Error types and instead report them as an internal error in the response. This adds a layer of security to your application by ensuring that internal details of your application do not leak to attackers.

Firebase Authentication lets you add an end-to-end identity solution to your app for easy user authentication, sign-in, and onboarding in just a few lines of code.

Updated Feb 20, 2025

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Feb 20, 2025

Code-first framework for orchestrating, deploying, and monitoring generative AI workflows.

Updated Feb 7, 2025