Skip to content

Commit cc92377

Browse files
katlyn-edwardscopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 995312571
1 parent 09f7b4f commit cc92377

23 files changed

Lines changed: 4813 additions & 52 deletions

‎interactions/JavaSamplesTest.java‎

Lines changed: 1035 additions & 0 deletions
Large diffs are not rendered by default.

‎interactions/bash_samples_test.sh‎

Lines changed: 621 additions & 0 deletions
Large diffs are not rendered by default.

‎interactions/go_samples_test.go‎

Lines changed: 1413 additions & 0 deletions
Large diffs are not rendered by default.

‎interactions/package.json‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "gemini-api-interactions-examples",
3+
"version": "1.0.0",
4+
"private": true,
5+
"description": "Interactions API reference samples, run as Jasmine specs.",
6+
"license": "Apache-2.0",
7+
"type": "module",
8+
"scripts": {
9+
"test": "jasmine typescript_samples_test.ts"
10+
},
11+
"dependencies": {
12+
"@google/genai": "^2.27.0"
13+
},
14+
"devDependencies": {
15+
"jasmine": "^7.0.0"
16+
}
17+
}

‎interactions/pom.xml‎

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- Runs JavaSamplesTest.java on GitHub (mvn test). google3 builds it with
3+
the BUILD file instead. -->
4+
<project xmlns="http://maven.apache.org/POM/4.0.0"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
7+
<modelVersion>4.0.0</modelVersion>
8+
9+
<groupId>com.example.gemini</groupId>
10+
<artifactId>interactions</artifactId>
11+
<version>1.0-SNAPSHOT</version>
12+
13+
<properties>
14+
<maven.compiler.release>17</maven.compiler.release>
15+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16+
</properties>
17+
18+
<dependencies>
19+
<dependency>
20+
<groupId>com.google.genai</groupId>
21+
<artifactId>google-genai</artifactId>
22+
<version>1.57.0</version>
23+
</dependency>
24+
<dependency>
25+
<groupId>junit</groupId>
26+
<artifactId>junit</artifactId>
27+
<version>4.13.2</version>
28+
<scope>test</scope>
29+
</dependency>
30+
</dependencies>
31+
32+
<build>
33+
<testSourceDirectory>${project.basedir}</testSourceDirectory>
34+
<plugins>
35+
<plugin>
36+
<groupId>org.apache.maven.plugins</groupId>
37+
<artifactId>maven-compiler-plugin</artifactId>
38+
<version>3.13.0</version>
39+
<configuration>
40+
<testIncludes>
41+
<testInclude>JavaSamplesTest.java</testInclude>
42+
</testIncludes>
43+
</configuration>
44+
</plugin>
45+
<plugin>
46+
<groupId>org.apache.maven.plugins</groupId>
47+
<artifactId>maven-surefire-plugin</artifactId>
48+
<version>3.5.2</version>
49+
<configuration>
50+
<includes>
51+
<include>**/JavaSamplesTest.java</include>
52+
</includes>
53+
</configuration>
54+
</plugin>
55+
</plugins>
56+
</build>
57+
</project>

0 commit comments

Comments
 (0)