Skip to content

Commit 3633a7d

Browse files
google-genai-botcopybara-github
authored andcommitted
fix: Removing deprecated methods from Runner
PiperOrigin-RevId: 886942637
1 parent 750851b commit 3633a7d

1 file changed

Lines changed: 0 additions & 42 deletions

File tree

core/src/main/java/com/google/adk/runner/Runner.java

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -425,36 +425,6 @@ public Flowable<Event> runAsync(String userId, String sessionId, Content newMess
425425
return runAsync(userId, sessionId, newMessage, RunConfig.builder().build());
426426
}
427427

428-
/**
429-
* See {@link #runAsync(Session, Content, RunConfig, Map)}.
430-
*
431-
* @deprecated Use runAsync with sessionId.
432-
*/
433-
@Deprecated(since = "0.4.0", forRemoval = true)
434-
public Flowable<Event> runAsync(Session session, Content newMessage, RunConfig runConfig) {
435-
return runAsync(session, newMessage, runConfig, /* stateDelta= */ null);
436-
}
437-
438-
/**
439-
* Runs the agent asynchronously using a provided Session object.
440-
*
441-
* @param session The session to run the agent in.
442-
* @param newMessage The new message from the user to process.
443-
* @param runConfig Configuration for the agent run.
444-
* @param stateDelta Optional map of state updates to merge into the session for this run.
445-
* @return A Flowable stream of {@link Event} objects generated by the agent during execution.
446-
* @deprecated Use runAsync with sessionId.
447-
*/
448-
@Deprecated(since = "0.4.0", forRemoval = true)
449-
public Flowable<Event> runAsync(
450-
Session session,
451-
Content newMessage,
452-
RunConfig runConfig,
453-
@Nullable Map<String, Object> stateDelta) {
454-
return runAsyncImpl(session, newMessage, runConfig, stateDelta)
455-
.compose(Tracing.trace("invocation"));
456-
}
457-
458428
/**
459429
* Runs the agent asynchronously using a provided Session object.
460430
*
@@ -735,18 +705,6 @@ protected Flowable<Event> runLiveImpl(
735705
});
736706
}
737707

738-
/**
739-
* Runs the agent asynchronously with a default user ID.
740-
*
741-
* @return stream of generated events.
742-
*/
743-
@Deprecated(since = "0.5.0", forRemoval = true)
744-
public Flowable<Event> runWithSessionId(
745-
String sessionId, Content newMessage, RunConfig runConfig) {
746-
// TODO(b/410859954): Add user_id to getter or method signature. Assuming "tmp-user" for now.
747-
return this.runAsync("tmp-user", sessionId, newMessage, runConfig);
748-
}
749-
750708
/**
751709
* Checks if the agent and its parent chain allow transfer up the tree.
752710
*

0 commit comments

Comments
 (0)