Skip to main content

Install

Setup

Set the GEMINI_API_KEY environment variable. To use the Gen AI SDK with Vertex AI instead of the Developer API, refer to Google’s guide on setting the required environment variables.
Use the register function to connect your application to Phoenix.

Observe

Now that you have tracing setup, all Gen AI SDK requests will be streamed to Phoenix for observability and evaluation.
This instrumentation will support tool calling soon. Refer to this page for the status.