Skip to content

Commit 6a8b9d4

Browse files
committed
update ContextStateInjectionBeforeAgentCallback
1 parent e1f8e37 commit 6a8b9d4

9 files changed

Lines changed: 14 additions & 9 deletions

File tree

artifact/file/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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>

artifact/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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>

callback/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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>

callback/src/main/java/com/javaaidev/adk/callback/ContextStateInjectionBeforeAgentCallback.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import com.google.genai.types.Content;
66
import io.reactivex.rxjava3.core.Maybe;
77
import java.util.Map;
8+
import java.util.Objects;
89

910
/**
1011
* Inject context state before running an agent
@@ -14,6 +15,10 @@
1415
public 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

memory/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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>

memory/spring-ai-vector-store/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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>

pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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>
@@ -102,7 +102,6 @@
102102
<extensions>true</extensions>
103103
<configuration>
104104
<publishingServerId>ossrh</publishingServerId>
105-
<tokenAuth>true</tokenAuth>
106105
<autoPublish>true</autoPublish>
107106
</configuration>
108107
</plugin>

session/file/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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

session/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
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>

0 commit comments

Comments
 (0)