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. -
task
public void task(@Nullable io.reactivex.rxjava3.disposables.Disposable task) Sets the active task of this streaming tool. -
stream
Returns the active stream of this streaming tool. -
stream
Sets the active stream of this streaming tool.
-