Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions core/src/main/java/com/google/adk/events/EventActions.java
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,16 @@ public Builder skipSummarization(@Nullable Boolean skipSummarization) {
@CanIgnoreReturnValue
@JsonProperty("stateDelta")
public Builder stateDelta(@Nullable Map<String, Object> value) {
if (value == null) {
this.stateDelta = new ConcurrentHashMap<>();
} else {
this.stateDelta = new ConcurrentHashMap<>(value);
this.stateDelta = new ConcurrentHashMap<>();
if (value != null) {
// Convert null values to State.REMOVED to avoid NPEs.
value
.entrySet()
.forEach(
entry -> {
stateDelta.put(
entry.getKey(), Optional.ofNullable(entry.getValue()).orElse(State.REMOVED));
});
}
return this;
}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public abstract class BigQueryLoggerConfig {
public abstract ImmutableList<String> clusteringFields();

// Whether to log multi-modal content.
// TODO(b/491852782): Implement logging of multi-modal content.
public abstract boolean logMultiModalContent();

// Retry configuration for BigQuery writes.
Expand Down Expand Up @@ -96,7 +95,7 @@ public abstract class BigQueryLoggerConfig {
// GCS bucket name to store multi-modal content.
public abstract String gcsBucketName();

// TODO(b/491852782): Implement connection id.
// Optional BigQuery connection ID for ObjectRef columns
public abstract Optional<String> connectionId();

// Toggle for session metadata (e.g. gchat thread-id).
Expand All @@ -118,8 +117,7 @@ public abstract class BigQueryLoggerConfig {
// Default "v" produces views like ``v_llm_request``.
public abstract String viewPrefix();

@Nullable
public abstract Credentials credentials();
public abstract @Nullable Credentials credentials();

public abstract Builder toBuilder();

Expand Down
Loading