Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 457 Bytes

File metadata and controls

17 lines (10 loc) · 457 Bytes

Java examples

This directory contains examples of working with the Gemini API using the

Google Gen AI SDK for Java.

Install dependencies

open the project in intelliJ IDEA, load the maven build script.

Run a test file

Before running the tests, set GOOGLE_API_KEY as environment variable for run/debug configuration.

mvn -Dtest=<filename> test

For example:

mvn -Dtest=CodeExecutionTest test