File tree Expand file tree Collapse file tree
contrib/samples/a2a_server
src/main/java/com/google/adk/samples/a2aagent Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 <a2a .sdk.version>0.3.0.Beta1</a2a .sdk.version>
2424 <quarkus .platform.version>3.30.6</quarkus .platform.version>
2525 <flogger .version>0.8</flogger .version>
26+ <quarkus .native.builder-image>graalvm</quarkus .native.builder-image>
2627 </properties >
2728
2829 <dependencyManagement >
2930 <dependencies >
3031 <dependency >
31- <groupId >io.quarkus</groupId >
32+ <groupId >io.quarkus.platform </groupId >
3233 <artifactId >quarkus-bom</artifactId >
3334 <version >${quarkus.platform.version} </version >
3435 <type >pom</type >
Original file line number Diff line number Diff line change 11package com .google .adk .samples .a2aagent ;
22
33import com .google .adk .a2a .executor .AgentExecutorConfig ;
4+ import com .google .adk .artifacts .InMemoryArtifactService ;
45import com .google .adk .samples .a2aagent .agent .Agent ;
56import com .google .adk .sessions .InMemorySessionService ;
67import io .a2a .server .agentexecution .AgentExecutor ;
@@ -18,10 +19,12 @@ public class AgentExecutorProducer {
1819 @ Produces
1920 public AgentExecutor agentExecutor () {
2021 InMemorySessionService sessionService = new InMemorySessionService ();
22+ InMemoryArtifactService artifactService = new InMemoryArtifactService ();
2123 return new com .google .adk .a2a .executor .AgentExecutor .Builder ()
2224 .agent (Agent .ROOT_AGENT )
2325 .appName (appName )
2426 .sessionService (sessionService )
27+ .artifactService (artifactService )
2528 .agentExecutorConfig (AgentExecutorConfig .builder ().build ())
2629 .build ();
2730 }
You can’t perform that action at this time.
0 commit comments