File tree Expand file tree Collapse file tree
contrib/spring-ai/src/main/java/com/google/adk/models/springai/properties
dev/src/main/java/com/google/adk Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 */
1616package com .google .adk .models .springai .properties ;
1717
18- import jakarta .annotation .Nullable ;
1918import jakarta .validation .constraints .DecimalMax ;
2019import jakarta .validation .constraints .DecimalMin ;
2120import jakarta .validation .constraints .Min ;
21+ import org .jspecify .annotations .Nullable ;
2222import org .springframework .boot .context .properties .ConfigurationProperties ;
2323import org .springframework .validation .annotation .Validated ;
2424
4141@ Validated
4242public class SpringAIProperties {
4343
44- @ Nullable private String model ;
44+ private @ Nullable String model ;
4545
4646 /** Default temperature for controlling randomness in responses. Must be between 0.0 and 2.0. */
4747 @ DecimalMin (value = "0.0" , message = "Temperature must be at least 0.0" )
Original file line number Diff line number Diff line change 2222import com .google .auto .value .AutoValue ;
2323import java .util .List ;
2424import java .util .Optional ;
25- import javax . annotation .Nullable ;
25+ import org . jspecify . annotations .Nullable ;
2626
2727/** Paired LLM request and response for replay. */
2828@ AutoValue
Original file line number Diff line number Diff line change 1919import com .fasterxml .jackson .databind .annotation .JsonPOJOBuilder ;
2020import com .google .auto .value .AutoValue ;
2121import java .util .Optional ;
22- import javax . annotation .Nullable ;
22+ import org . jspecify . annotations .Nullable ;
2323
2424/** Single interaction recording, ordered by request timestamp. */
2525@ AutoValue
Original file line number Diff line number Diff line change 2121import com .google .genai .types .FunctionCall ;
2222import com .google .genai .types .FunctionResponse ;
2323import java .util .Optional ;
24- import javax . annotation .Nullable ;
24+ import org . jspecify . annotations .Nullable ;
2525
2626/** Paired tool call and response for replay. */
2727@ AutoValue
Original file line number Diff line number Diff line change 2020import com .google .adk .JsonBaseModel ;
2121import com .google .genai .types .Content ;
2222import java .util .Map ;
23- import javax . annotation .Nullable ;
23+ import org . jspecify . annotations .Nullable ;
2424
2525/**
2626 * Data Transfer Object (DTO) for POST /run and POST /run-sse requests. Contains information needed
@@ -48,8 +48,7 @@ public class AgentRunRequest {
4848 * replay mode settings) without modifying the stored session.
4949 */
5050 @ JsonProperty ("stateDelta" )
51- @ Nullable
52- public Map <String , Object > stateDelta ;
51+ public @ Nullable Map <String , Object > stateDelta ;
5352
5453 public AgentRunRequest () {}
5554
@@ -83,8 +82,7 @@ public boolean getStreaming() {
8382 return streaming ;
8483 }
8584
86- @ Nullable
87- public Map <String , Object > getStateDelta () {
85+ public @ Nullable Map <String , Object > getStateDelta () {
8886 return stateDelta ;
8987 }
9088}
You can’t perform that action at this time.
0 commit comments