diff --git a/core/src/main/java/com/google/adk/agents/InvocationContext.java b/core/src/main/java/com/google/adk/agents/InvocationContext.java index 91ce13a87..365f4f8c1 100644 --- a/core/src/main/java/com/google/adk/agents/InvocationContext.java +++ b/core/src/main/java/com/google/adk/agents/InvocationContext.java @@ -90,16 +90,6 @@ public Builder toBuilder() { return new Builder(this); } - /** - * Creates a shallow copy of the given {@link InvocationContext}. - * - * @deprecated Use {@code other.toBuilder().build()} instead. - */ - @Deprecated(forRemoval = true) - public static InvocationContext copyOf(InvocationContext other) { - return other.toBuilder().build(); - } - /** Returns the session service for managing session state. */ public BaseSessionService sessionService() { return sessionService; @@ -156,16 +146,6 @@ public BaseAgent agent() { return agent; } - /** - * Sets the [agent] being invoked. This is useful when delegating to a sub-agent. - * - * @deprecated Use {@link #toBuilder()} and {@link Builder#agent(BaseAgent)} instead. - */ - @Deprecated(forRemoval = true) - public void agent(BaseAgent agent) { - this.agent = agent; - } - /** Returns the session associated with this invocation. */ public Session session() { return session;