Skip to content

Commit fa67101

Browse files
google-genai-botcopybara-github
authored andcommitted
ADK changes
PiperOrigin-RevId: 885777704
1 parent ce610ff commit fa67101

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

core/src/main/java/com/google/adk/agents/InvocationContext.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,6 @@ public Builder toBuilder() {
9090
return new Builder(this);
9191
}
9292

93-
/**
94-
* Creates a shallow copy of the given {@link InvocationContext}.
95-
*
96-
* @deprecated Use {@code other.toBuilder().build()} instead.
97-
*/
98-
@Deprecated(forRemoval = true)
99-
public static InvocationContext copyOf(InvocationContext other) {
100-
return other.toBuilder().build();
101-
}
102-
10393
/** Returns the session service for managing session state. */
10494
public BaseSessionService sessionService() {
10595
return sessionService;
@@ -156,16 +146,6 @@ public BaseAgent agent() {
156146
return agent;
157147
}
158148

159-
/**
160-
* Sets the [agent] being invoked. This is useful when delegating to a sub-agent.
161-
*
162-
* @deprecated Use {@link #toBuilder()} and {@link Builder#agent(BaseAgent)} instead.
163-
*/
164-
@Deprecated(forRemoval = true)
165-
public void agent(BaseAgent agent) {
166-
this.agent = agent;
167-
}
168-
169149
/** Returns the session associated with this invocation. */
170150
public Session session() {
171151
return session;

0 commit comments

Comments
 (0)