Google Gemini Chat Model with Langfuse icon

Google Gemini Chat Model with Langfuse

Google Gemini chat models with Langfuse observability

Google Gemini Chat Model with Langfuse

AI-generated

Summary

Executes Google Gemini chat model with Langfuse observability, configuring a ChatGoogleGenerativeAI instance with the specified model, options, and tracing metadata, returning the model as the ai_languageModel output.

Inputs

  • model (required) — The Gemini model to use. Choose from the list via search, or specify a model ID.
  • langfuseMetadata — Langfuse tracing metadata. customMetadata is optional JSON attached to traces. sessionId groups traces (langfuse_session_id). userId attributes traces (langfuse_user_id).
  • options — Additional model configuration options.

Output shape

ai_languageModel

The configured Google Gemini chat model instance with Langfuse tracing callbacks attached, ready for generation.

Links

Discussion