Skip to content

Latest commit

 

History

History
63 lines (36 loc) · 1.85 KB

File metadata and controls

63 lines (36 loc) · 1.85 KB

LearningADK

Repo with examples for learning by example about Google's Agent Development Kit (ADK).

Usages

Obviously replacing AI... with the secret obtained e.g. as described on https://docs.enola.dev/specs/aiuri/#google-ai:

Quickstart

This is the https://google.github.io/adk-docs/get-started/quickstart/#java.

Dev Web UI

cd quickstart; GOOGLE_API_KEY=AI... ./run-web.sh

Now open http://localhost:8080...

Quickstart CLI

cd quickstart; GOOGLE_API_KEY=AI... ./run-cli.sh

Now type a prompt on the console...

Simplest

This is most simplified version, without agents, just a prompt from a CLI argument

cd simplest; GOOGLE_API_KEY=AI... ./run.sh Who are you?

JitPack

This a variant of simplest which, instead of using a released ADK version from Maven Central, uses https://jitpack.io/#google/adk-java/ on https://jitpack.io to fetch an unreleased revision (check out its pom.xml for how):

cd jitpack; GOOGLE_API_KEY=AI... ./run-cli.sh Who are you?

or:

cd jitpack; GOOGLE_API_KEY=AI... ./run-web.sh

and open http://localhost:8080.

SNAPSHOT

This is a variant of quickstart which uses -SNAPSHOT ADK versions, which are not available on Maven Central, but can be locally ./mvnw clean install after git clone https://github.com/google/adk-java.

Ollama, via LangChain4j

This is a preview of ADK's potential LangChain4j support, see this blog post:

ollama pull gemma3:4b
cd LangChain4j; ./run-cli.sh "hi, who are you and what can you do?"

Related