Skip to content
Open
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
41 changes: 0 additions & 41 deletions core/src/main/java/com/google/adk/runner/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -415,35 +415,6 @@ public Flowable<Event> runAsync(String userId, String sessionId, Content newMess
return runAsync(userId, sessionId, newMessage, RunConfig.builder().build());
}

/**
* See {@link #runAsync(Session, Content, RunConfig, Map)}.
*
* @deprecated Use runAsync with sessionId.
*/
@Deprecated(since = "0.4.0", forRemoval = true)
public Flowable<Event> runAsync(Session session, Content newMessage, RunConfig runConfig) {
return runAsync(session, newMessage, runConfig, /* stateDelta= */ null);
}

/**
* Runs the agent asynchronously using a provided Session object.
*
* @param session The session to run the agent in.
* @param newMessage The new message from the user to process.
* @param runConfig Configuration for the agent run.
* @param stateDelta Optional map of state updates to merge into the session for this run.
* @return A Flowable stream of {@link Event} objects generated by the agent during execution.
* @deprecated Use runAsync with sessionId.
*/
@Deprecated(since = "0.4.0", forRemoval = true)
public Flowable<Event> runAsync(
Session session,
Content newMessage,
RunConfig runConfig,
@Nullable Map<String, Object> stateDelta) {
return runAsyncImpl(session, newMessage, runConfig, stateDelta);
}

/**
* Runs the agent asynchronously using a provided Session object.
*
Expand Down Expand Up @@ -710,18 +681,6 @@ public Flowable<Event> runLive(
return runLive(sessionKey.userId(), sessionKey.id(), liveRequestQueue, runConfig);
}

/**
* Runs the agent asynchronously with a default user ID.
*
* @return stream of generated events.
*/
@Deprecated(since = "0.5.0", forRemoval = true)
public Flowable<Event> runWithSessionId(
String sessionId, Content newMessage, RunConfig runConfig) {
// TODO(b/410859954): Add user_id to getter or method signature. Assuming "tmp-user" for now.
return this.runAsync("tmp-user", sessionId, newMessage, runConfig);
}

/**
* Checks if the agent and its parent chain allow transfer up the tree.
*
Expand Down
Loading