File tree Expand file tree Collapse file tree
src/main/java/com/javaaidev/adk/callback Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >com.javaaidev.adk</groupId >
88 <artifactId >artifact</artifactId >
9- <version >0.1.3 </version >
9+ <version >0.1.4 </version >
1010 </parent >
1111
1212 <artifactId >artifact-file</artifactId >
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >com.javaaidev.adk</groupId >
88 <artifactId >adk-extra</artifactId >
9- <version >0.1.3 </version >
9+ <version >0.1.4 </version >
1010 </parent >
1111
1212 <artifactId >artifact</artifactId >
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >com.javaaidev.adk</groupId >
88 <artifactId >adk-extra</artifactId >
9- <version >0.1.3 </version >
9+ <version >0.1.4 </version >
1010 </parent >
1111
1212 <artifactId >callback</artifactId >
Original file line number Diff line number Diff line change 55import com .google .genai .types .Content ;
66import io .reactivex .rxjava3 .core .Maybe ;
77import java .util .Map ;
8+ import java .util .Objects ;
89
910/**
1011 * Inject context state before running an agent
1415public record ContextStateInjectionBeforeAgentCallback (Maybe <Map <String , Object >> stateDelta )
1516 implements BeforeAgentCallback {
1617
18+ public ContextStateInjectionBeforeAgentCallback (Map <String , Object > stateDelta ) {
19+ this (Maybe .just (Objects .requireNonNull (stateDelta , "stateDelta cannot be null" )));
20+ }
21+
1722 @ Override
1823 public Maybe <Content > call (CallbackContext callbackContext ) {
1924 return stateDelta
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >com.javaaidev.adk</groupId >
88 <artifactId >adk-extra</artifactId >
9- <version >0.1.3 </version >
9+ <version >0.1.4 </version >
1010 </parent >
1111
1212 <artifactId >memory</artifactId >
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >com.javaaidev.adk</groupId >
88 <artifactId >memory</artifactId >
9- <version >0.1.3 </version >
9+ <version >0.1.4 </version >
1010 </parent >
1111
1212 <artifactId >memory-spring-ai-vector-store</artifactId >
Original file line number Diff line number Diff line change 66
77 <groupId >com.javaaidev.adk</groupId >
88 <artifactId >adk-extra</artifactId >
9- <version >0.1.3 </version >
9+ <version >0.1.4 </version >
1010 <packaging >pom</packaging >
1111 <name >ADK Extra</name >
1212 <description >Extra Library for Google Agent Development Kit</description >
102102 <extensions >true</extensions >
103103 <configuration >
104104 <publishingServerId >ossrh</publishingServerId >
105- <tokenAuth >true</tokenAuth >
106105 <autoPublish >true</autoPublish >
107106 </configuration >
108107 </plugin >
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >com.javaaidev.adk</groupId >
88 <artifactId >adk-extra</artifactId >
9- <version >0.1.3 </version >
9+ <version >0.1.4 </version >
1010 <relativePath >../../pom.xml</relativePath >
1111 </parent >
1212
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >com.javaaidev.adk</groupId >
88 <artifactId >adk-extra</artifactId >
9- <version >0.1.3 </version >
9+ <version >0.1.4 </version >
1010 </parent >
1111
1212 <artifactId >session</artifactId >
1313 <name >Session</name >
14+ <packaging >pom</packaging >
1415
1516 <properties >
1617 <maven .compiler.source>17</maven .compiler.source>
You can’t perform that action at this time.
0 commit comments