Skip to content

Commit 1d40e3a

Browse files
committed
feat: JBang! 💥 🤯
1 parent 40ec7bc commit 1d40e3a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tutorials/jbang/AI.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
import com.google.adk.agents.LlmAgent;
7+
import com.google.adk.web.AdkWebServer;
8+
9+
void main() {
10+
AdkWebServer.start(LlmAgent.builder().name("AI").model("gemini-2.0-flash").instruction("Be very grumpy!").build());
11+
}

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)