Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

GenAI TypeScript SDK Samples (1P Users)

The sample code demonstrates how to use the GenAI Typescript SDK internally at Google.

Web Environment

Import the web client

import {GoogleGenAI} from '@google/genai';

Angular

See an example Angular component calling models.generateContent

  • google3/third_party/javascript/google_genai/google_samples/angular/generate_content

Testing

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.

Node Environment

TODO: Add example code and test which uses the node client