Skip to content
Merged
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
20 changes: 0 additions & 20 deletions core/src/main/java/com/google/adk/agents/InvocationContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
Loading