Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,035 changes: 1,035 additions & 0 deletions interactions/JavaSamplesTest.java

Large diffs are not rendered by default.

621 changes: 621 additions & 0 deletions interactions/bash_samples_test.sh

Large diffs are not rendered by default.

1,413 changes: 1,413 additions & 0 deletions interactions/go_samples_test.go

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions interactions/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "gemini-api-interactions-examples",
"version": "1.0.0",
"private": true,
"description": "Interactions API reference samples, run as Jasmine specs.",
"license": "Apache-2.0",
"type": "module",
"scripts": {
"test": "jasmine typescript_samples_test.ts"
},
"dependencies": {
"@google/genai": "^2.27.0"
},
"devDependencies": {
"jasmine": "^7.0.0"
}
}
57 changes: 57 additions & 0 deletions interactions/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Runs JavaSamplesTest.java on GitHub (mvn test). google3 builds it with
the BUILD file instead. -->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.example.gemini</groupId>
<artifactId>interactions</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>com.google.genai</groupId>
<artifactId>google-genai</artifactId>
<version>1.57.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<testSourceDirectory>${project.basedir}</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<testIncludes>
<testInclude>JavaSamplesTest.java</testInclude>
</testIncludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.2</version>
<configuration>
<includes>
<include>**/JavaSamplesTest.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</project>
Loading
Loading