|
27 | 27 | import com.google.adk.sessions.Session; |
28 | 28 | import com.google.adk.summarizer.EventsCompactionConfig; |
29 | 29 | import com.google.errorprone.annotations.CanIgnoreReturnValue; |
30 | | -import com.google.errorprone.annotations.InlineMe; |
31 | 30 | import com.google.genai.types.Content; |
32 | 31 | import java.util.Map; |
33 | 32 | import java.util.Objects; |
@@ -81,62 +80,6 @@ protected InvocationContext(Builder builder) { |
81 | 80 | this.callbackContextData = builder.callbackContextData; |
82 | 81 | } |
83 | 82 |
|
84 | | - /** |
85 | | - * @deprecated Use {@link #builder()} instead. |
86 | | - */ |
87 | | - @InlineMe( |
88 | | - replacement = |
89 | | - "InvocationContext.builder()" |
90 | | - + ".sessionService(sessionService)" |
91 | | - + ".artifactService(artifactService)" |
92 | | - + ".invocationId(invocationId)" |
93 | | - + ".agent(agent)" |
94 | | - + ".session(session)" |
95 | | - + ".userContent(userContent)" |
96 | | - + ".runConfig(runConfig)" |
97 | | - + ".build()", |
98 | | - imports = {"com.google.adk.agents.InvocationContext"}) |
99 | | - @Deprecated(forRemoval = true) |
100 | | - public static InvocationContext create( |
101 | | - BaseSessionService sessionService, |
102 | | - BaseArtifactService artifactService, |
103 | | - String invocationId, |
104 | | - BaseAgent agent, |
105 | | - Session session, |
106 | | - Content userContent, |
107 | | - RunConfig runConfig) { |
108 | | - return builder() |
109 | | - .sessionService(sessionService) |
110 | | - .artifactService(artifactService) |
111 | | - .invocationId(invocationId) |
112 | | - .agent(agent) |
113 | | - .session(session) |
114 | | - .userContent(userContent) |
115 | | - .runConfig(runConfig) |
116 | | - .build(); |
117 | | - } |
118 | | - |
119 | | - /** |
120 | | - * @deprecated Use {@link #builder()} instead. |
121 | | - */ |
122 | | - @Deprecated(forRemoval = true) |
123 | | - public static InvocationContext create( |
124 | | - BaseSessionService sessionService, |
125 | | - BaseArtifactService artifactService, |
126 | | - BaseAgent agent, |
127 | | - Session session, |
128 | | - LiveRequestQueue liveRequestQueue, |
129 | | - RunConfig runConfig) { |
130 | | - return builder() |
131 | | - .sessionService(sessionService) |
132 | | - .artifactService(artifactService) |
133 | | - .agent(agent) |
134 | | - .session(session) |
135 | | - .liveRequestQueue(liveRequestQueue) |
136 | | - .runConfig(runConfig) |
137 | | - .build(); |
138 | | - } |
139 | | - |
140 | 83 | /** Returns a new {@link Builder} for creating {@link InvocationContext} instances. */ |
141 | 84 | public static Builder builder() { |
142 | 85 | return new Builder(); |
|
0 commit comments