Uses of Class
com.google.adk.agents.CallbackContext
Packages that use CallbackContext
-
Uses of CallbackContext in com.google.adk.agents
Methods in com.google.adk.agents with parameters of type CallbackContextModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<com.google.genai.types.Content> Callbacks.AfterAgentCallback.call(CallbackContext callbackContext) Async callback after agent runs.Optional<com.google.genai.types.Content> Callbacks.AfterAgentCallbackSync.call(CallbackContext callbackContext) io.reactivex.rxjava3.core.Maybe<LlmResponse> Callbacks.AfterModelCallback.call(CallbackContext callbackContext, LlmResponse llmResponse) Async callback after LLM response.Callbacks.AfterModelCallbackSync.call(CallbackContext callbackContext, LlmResponse llmResponse) io.reactivex.rxjava3.core.Maybe<com.google.genai.types.Content> Callbacks.BeforeAgentCallback.call(CallbackContext callbackContext) Async callback before agent runs.Optional<com.google.genai.types.Content> Callbacks.BeforeAgentCallbackSync.call(CallbackContext callbackContext) io.reactivex.rxjava3.core.Maybe<LlmResponse> Callbacks.BeforeModelCallback.call(CallbackContext callbackContext, LlmRequest.Builder llmRequestBuilder) Async callback before LLM invocation.Callbacks.BeforeModelCallbackSync.call(CallbackContext callbackContext, LlmRequest.Builder llmRequestBuilder) -
Uses of CallbackContext in com.google.adk.plugins
Methods in com.google.adk.plugins with parameters of type CallbackContextModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<com.google.genai.types.Content> BasePlugin.afterAgentCallback(BaseAgent agent, CallbackContext callbackContext) Callback executed after an agent's primary logic has completed.io.reactivex.rxjava3.core.Maybe<com.google.genai.types.Content> LoggingPlugin.afterAgentCallback(BaseAgent agent, CallbackContext callbackContext) io.reactivex.rxjava3.core.Maybe<LlmResponse> BasePlugin.afterModelCallback(CallbackContext callbackContext, LlmResponse llmResponse) Callback executed after a response is received from the model.io.reactivex.rxjava3.core.Maybe<LlmResponse> LoggingPlugin.afterModelCallback(CallbackContext callbackContext, LlmResponse llmResponse) io.reactivex.rxjava3.core.Maybe<com.google.genai.types.Content> BasePlugin.beforeAgentCallback(BaseAgent agent, CallbackContext callbackContext) Callback executed before an agent's primary logic is invoked.io.reactivex.rxjava3.core.Maybe<com.google.genai.types.Content> LoggingPlugin.beforeAgentCallback(BaseAgent agent, CallbackContext callbackContext) io.reactivex.rxjava3.core.Maybe<LlmResponse> BasePlugin.beforeModelCallback(CallbackContext callbackContext, LlmRequest llmRequest) Callback executed before a request is sent to the model.io.reactivex.rxjava3.core.Maybe<LlmResponse> LoggingPlugin.beforeModelCallback(CallbackContext callbackContext, LlmRequest llmRequest) io.reactivex.rxjava3.core.Maybe<LlmResponse> BasePlugin.onModelErrorCallback(CallbackContext callbackContext, LlmRequest llmRequest, Throwable error) Callback executed when a model call encounters an error.io.reactivex.rxjava3.core.Maybe<LlmResponse> LoggingPlugin.onModelErrorCallback(CallbackContext callbackContext, LlmRequest llmRequest, Throwable error) io.reactivex.rxjava3.core.Maybe<com.google.genai.types.Content> PluginManager.runAfterAgentCallback(BaseAgent agent, CallbackContext callbackContext) io.reactivex.rxjava3.core.Maybe<LlmResponse> PluginManager.runAfterModelCallback(CallbackContext callbackContext, LlmResponse llmResponse) io.reactivex.rxjava3.core.Maybe<com.google.genai.types.Content> PluginManager.runBeforeAgentCallback(BaseAgent agent, CallbackContext callbackContext) io.reactivex.rxjava3.core.Maybe<LlmResponse> PluginManager.runBeforeModelCallback(CallbackContext callbackContext, LlmRequest llmRequest) io.reactivex.rxjava3.core.Maybe<LlmResponse> PluginManager.runOnModelErrorCallback(CallbackContext callbackContext, LlmRequest llmRequest, Throwable error) -
Uses of CallbackContext in com.google.adk.tools
Subclasses of CallbackContext in com.google.adk.toolsModifier and TypeClassDescriptionclassToolContext object provides a structured context for executing tools or functions.