Skip to content

Commit e10e4f9

Browse files
committed
feat: JBang! 💥 🤯
1 parent 9e3723b commit e10e4f9

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

tutorials/jbang/AI.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//JAVA 17+
2+
//PREVIEW
3+
//REPOS enola=https://docs.enola.dev/maven-repo/,mavencentral,jitpack
4+
//DEPS com.google.adk:google-adk-dev:0.2.1-SNAPSHOT
5+
//
6+
// All this ^^^ should not be removed because https://JBang.dev needs this...
7+
8+
import com.google.adk.agents.LlmAgent;
9+
import com.google.adk.web.AdkWebServer;
10+
11+
void main() {
12+
AdkWebServer.start(LlmAgent.builder().name("AI").model("gemini-2.0-flash").instruction("Be very grumpy!").build());
13+
}

tutorials/jbang/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# JBang! 💥 🤯
2+
3+
Want to use ADK, but don't care about Maven? Then this is for you!
4+
5+
[Just install JBang](https://www.jbang.dev/documentation/jbang/latest/installation.html), and then run `jbang AI.java`...

0 commit comments

Comments
 (0)