Skip to content
Merged
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
13 changes: 13 additions & 0 deletions tutorials/jbang/AI.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//JAVA 17+
//PREVIEW
//REPOS enola=https://docs.enola.dev/maven-repo/,mavencentral,jitpack
//DEPS com.google.adk:google-adk-dev:0.2.1-SNAPSHOT
//
// All this ^^^ should not be removed because https://JBang.dev needs this...

import com.google.adk.agents.LlmAgent;
import com.google.adk.web.AdkWebServer;

void main() {
AdkWebServer.start(LlmAgent.builder().name("AI").model("gemini-2.0-flash").instruction("Be very grumpy!").build());
}
5 changes: 5 additions & 0 deletions tutorials/jbang/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# JBang! 💥 🤯

Want to use ADK, but don't care about Maven? Then this is for you!

[Just install JBang](https://www.jbang.dev/documentation/jbang/latest/installation.html), and then run `jbang AI.java`...