Class ActiveStreamingTool
java.lang.Object
com.google.adk.agents.ActiveStreamingTool
Manages streaming tool related resources during invocation.
-
Constructor Summary
ConstructorsConstructorDescriptionActiveStreamingTool(LiveRequestQueue stream) ActiveStreamingTool(io.reactivex.rxjava3.disposables.Disposable task) ActiveStreamingTool(io.reactivex.rxjava3.disposables.Disposable task, LiveRequestQueue stream) -
Method Summary
Modifier and TypeMethodDescriptionstream()Returns the active stream of this streaming tool.voidstream(LiveRequestQueue stream) Sets the active stream of this streaming tool.io.reactivex.rxjava3.disposables.Disposabletask()Returns the active task of this streaming tool.voidtask(io.reactivex.rxjava3.disposables.Disposable task) Sets the active task of this streaming tool.
-
Constructor Details
-
ActiveStreamingTool
public ActiveStreamingTool(io.reactivex.rxjava3.disposables.Disposable task) -
ActiveStreamingTool
-
ActiveStreamingTool
public ActiveStreamingTool(io.reactivex.rxjava3.disposables.Disposable task, LiveRequestQueue stream) -
ActiveStreamingTool
public ActiveStreamingTool()
-
-
Method Details
-
task
@Nullable public io.reactivex.rxjava3.disposables.Disposable task()Returns the active task of this streaming tool.- Returns:
- The active task.
-
task
public void task(@Nullable io.reactivex.rxjava3.disposables.Disposable task) Sets the active task of this streaming tool.- Parameters:
task- The new active task.
-
stream
Returns the active stream of this streaming tool.- Returns:
- The active stream.
-
stream
Sets the active stream of this streaming tool.- Parameters:
stream- The new active stream.
-