From 98b9e2ebd2f92786078fe2a12d58e6f8bac182fd Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Sun, 1 Feb 2026 17:30:04 +0100 Subject: [PATCH] docs: Create examples/README.md with usage instructions Added instructions for running examples in README. --- examples/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 examples/README.md diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 00000000000..abb1a9b0979 --- /dev/null +++ b/examples/README.md @@ -0,0 +1,15 @@ +# Examples + +You can run these examples using: + + git clone https://github.com/googleapis/java-genai.git + cd java-genai + mvn clean install -Djacoco.skip=true -DskipTests + + cd examples + export GOOGLE_API_KEY=... + mvn compile exec:java -Dexec.mainClass="com.google.genai.examples.GenerateContent" + +The `jacoco.skip` is required due to [issue #756](https://github.com/googleapis/java-genai/issues/756), and the `skipTests` just makes it faster. + +[Issue #801](https://github.com/googleapis/java-genai/issues/801) may avoid having to first `install` in the future.