The sample code demonstrates how to use the GenAI Typescript SDK internally at Google.
Import the web client
import {GoogleGenAI} from '@google/genai';See an example Angular component calling models.generateContent
- google3/third_party/javascript/google_genai/google_samples/angular/generate_content
The tests included verify that the BLAZE target can be successfully built within a browser environment. This ensures the SDK is properly configured for web-based usage.
TODO: Add example code and test which uses the node client