File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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 ` ...
You can’t perform that action at this time.
0 commit comments