Uses of Class
com.google.adk.events.Event
Packages that use Event
Package
Description
-
Uses of Event in com.google.adk.a2a
Methods in com.google.adk.a2a that return types with arguments of type EventModifier and TypeMethodDescriptionprotected io.reactivex.rxjava3.core.Flowable<Event> RemoteA2AAgent.runAsyncImpl(InvocationContext invocationContext) protected io.reactivex.rxjava3.core.Flowable<Event> RemoteA2AAgent.runLiveImpl(InvocationContext invocationContext) -
Uses of Event in com.google.adk.a2a.converters
Fields in com.google.adk.a2a.converters with type parameters of type EventModifier and TypeFieldDescriptionfinal com.google.common.collect.ImmutableList<Event> ConversationPreprocessor.PreparedInput.historyEventsHistorical events that should remain in the session transcript.ConversationPreprocessor.PreparedInput.userEventThe concrete event that suppliedConversationPreprocessor.PreparedInput.userContent, for callers needing metadata.Methods in com.google.adk.a2a.converters that return EventModifier and TypeMethodDescriptionstatic EventResponseConverter.messageToEvent(io.a2a.spec.Message message, InvocationContext invocationContext) Converts an A2A message back to ADK events.static EventResponseConverter.messageToEvent(io.a2a.spec.Message message, InvocationContext invocationContext, boolean isPending) Converts an A2A message back to ADK events.static EventResponseConverter.messageToFailedEvent(io.a2a.spec.Message message, InvocationContext invocationContext) Converts an A2A message for a failed task to ADK event filling in the error message.static EventResponseConverter.taskToEvent(io.a2a.spec.Task task, InvocationContext invocationContext) Converts an A2ATaskto an ADKEvent.Methods in com.google.adk.a2a.converters that return types with arguments of type EventModifier and TypeMethodDescriptionResponseConverter.clientEventToEvent(io.a2a.client.ClientEvent event, InvocationContext invocationContext) Converts a A2AClientEventto an ADKEvent, based on the event type.RequestConverter.convertA2aMessageToAdkEvent(io.a2a.spec.Message message, String invocationId) Convert an A2A Message to an ADK Event.static com.google.common.collect.ImmutableList<Event> RequestConverter.convertAggregatedA2aMessageToAdkEvents(io.a2a.spec.Message message, String invocationId) Convert an aggregated A2A Message to multiple ADK Events.ResponseConverter.messageToEvents(io.a2a.spec.Message message, String invocationId, String branch) Converts an A2A message back to ADK events.ResponseConverter.sendMessageResponseToEvents(io.a2a.spec.SendMessageResponse response, String invocationId, String branch) Converts aSendMessageResponsecontaining aMessageresult into ADK events.Methods in com.google.adk.a2a.converters with parameters of type EventModifier and TypeMethodDescriptionstatic io.a2a.spec.MessageResponseConverter.eventToMessage(Event event, String contextId) Converts a single ADK event into an A2A message.Method parameters in com.google.adk.a2a.converters with type arguments of type EventModifier and TypeMethodDescriptionstatic io.a2a.spec.MessageResponseConverter.eventsToMessage(List<Event> events, String contextId, String taskId) Converts a list of ADK events into a single aggregated A2A message.ConversationPreprocessor.extractHistoryAndUserContent(List<Event> inputEvents) Splits the provided event list into history and the latest user-authored text message.Constructor parameters in com.google.adk.a2a.converters with type arguments of type EventModifierConstructorDescriptionPreparedInput(com.google.common.collect.ImmutableList<Event> historyEvents, Optional<com.google.genai.types.Content> userContent, Optional<Event> userEvent) Creates a new instance. -
Uses of Event in com.google.adk.a2a.executor
Methods in com.google.adk.a2a.executor with parameters of type EventModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<io.a2a.spec.TaskArtifactUpdateEvent> Callbacks.AfterEventCallback.call(io.a2a.server.agentexecution.RequestContext ctx, io.a2a.spec.TaskArtifactUpdateEvent processedEvent, Event event) Callback which will be called after an ADK event is successfully converted to an A2A event. -
Uses of Event in com.google.adk.agents
Methods in com.google.adk.agents that return types with arguments of type EventModifier and TypeMethodDescriptionReadonlyContext.events()Returns an unmodifiable view of the events of the session.io.reactivex.rxjava3.core.Flowable<Event> BaseAgent.runAsync(InvocationContext parentContext) Runs the agent asynchronously.protected abstract io.reactivex.rxjava3.core.Flowable<Event> BaseAgent.runAsyncImpl(InvocationContext invocationContext) Agent-specific asynchronous logic.protected io.reactivex.rxjava3.core.Flowable<Event> LlmAgent.runAsyncImpl(InvocationContext invocationContext) protected io.reactivex.rxjava3.core.Flowable<Event> LoopAgent.runAsyncImpl(InvocationContext invocationContext) protected io.reactivex.rxjava3.core.Flowable<Event> ParallelAgent.runAsyncImpl(InvocationContext invocationContext) Runs sub-agents in parallel and emits their events.protected io.reactivex.rxjava3.core.Flowable<Event> SequentialAgent.runAsyncImpl(InvocationContext invocationContext) Runs sub-agents sequentially.io.reactivex.rxjava3.core.Flowable<Event> BaseAgent.runLive(InvocationContext parentContext) Runs the agent synchronously.protected abstract io.reactivex.rxjava3.core.Flowable<Event> BaseAgent.runLiveImpl(InvocationContext invocationContext) Agent-specific synchronous logic.protected io.reactivex.rxjava3.core.Flowable<Event> LlmAgent.runLiveImpl(InvocationContext invocationContext) protected io.reactivex.rxjava3.core.Flowable<Event> LoopAgent.runLiveImpl(InvocationContext invocationContext) protected io.reactivex.rxjava3.core.Flowable<Event> ParallelAgent.runLiveImpl(InvocationContext invocationContext) Not supported for ParallelAgent.protected io.reactivex.rxjava3.core.Flowable<Event> SequentialAgent.runLiveImpl(InvocationContext invocationContext) Runs sub-agents sequentially in live mode. -
Uses of Event in com.google.adk.events
Classes in com.google.adk.events that implement interfaces with type arguments of type EventMethods in com.google.adk.events that return EventModifier and TypeMethodDescriptionEvent.Builder.build()static EventParses an event from a JSON string.Methods in com.google.adk.events that return types with arguments of type EventModifier and TypeMethodDescriptionEventStream.iterator()Returns an iterator that fetches events lazily.Constructor parameters in com.google.adk.events with type arguments of type EventModifierConstructorDescriptionEventStream(Supplier<Event> eventSupplier) Constructs a new event stream. -
Uses of Event in com.google.adk.flows
Methods in com.google.adk.flows that return types with arguments of type EventModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Flowable<Event> BaseFlow.run(InvocationContext invocationContext) Run this flow.default io.reactivex.rxjava3.core.Flowable<Event> BaseFlow.runLive(InvocationContext invocationContext) -
Uses of Event in com.google.adk.flows.llmflows
Methods in com.google.adk.flows.llmflows that return types with arguments of type EventModifier and TypeMethodDescriptionRequestProcessor.RequestProcessingResult.events()Events generated during processing.ResponseProcessor.ResponseProcessingResult.events()Events generated during processing.Functions.generateRequestConfirmationEvent(InvocationContext invocationContext, Event functionCallEvent, Event functionResponseEvent) Generates a request confirmation event from a function response event.static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCalls(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools) Handles standard, non-streaming function calls.static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCalls(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools, Map<String, ToolConfirmation> toolConfirmations) Handles standard, non-streaming function calls with tool confirmations.static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCallsLive(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools) Handles function calls in a live/streaming context, supporting background execution and stream termination.static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCallsLive(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools, Map<String, ToolConfirmation> toolConfirmations) Handles function calls in a live/streaming context with tool confirmations, supporting background execution and stream termination.protected io.reactivex.rxjava3.core.Flowable<Event> BaseLlmFlow.postprocess(InvocationContext context, Event baseEventForLlmResponse, LlmRequest llmRequest, LlmResponse llmResponse) Post-processes the LLM response after receiving it from the LLM.protected io.reactivex.rxjava3.core.Flowable<Event> BaseLlmFlow.preprocess(InvocationContext context, AtomicReference<LlmRequest> llmRequestRef) Pre-processes the LLM request before sending it to the LLM.io.reactivex.rxjava3.core.Flowable<Event> BaseLlmFlow.run(InvocationContext invocationContext) Executes the full LLM flow by repeatedly callingBaseLlmFlow.runOneStep(InvocationContext)until a final response is produced.io.reactivex.rxjava3.core.Flowable<Event> BaseLlmFlow.runLive(InvocationContext invocationContext) Executes the LLM flow in streaming mode.Methods in com.google.adk.flows.llmflows with parameters of type EventModifier and TypeMethodDescriptionFunctions.generateRequestConfirmationEvent(InvocationContext invocationContext, Event functionCallEvent, Event functionResponseEvent) Generates a request confirmation event from a function response event.static com.google.common.collect.ImmutableList<com.google.genai.types.FunctionCall> Functions.getAskUserConfirmationFunctionCalls(Event event) Gets the ask user confirmation function calls from the event.static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCalls(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools) Handles standard, non-streaming function calls.static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCalls(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools, Map<String, ToolConfirmation> toolConfirmations) Handles standard, non-streaming function calls with tool confirmations.static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCallsLive(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools) Handles function calls in a live/streaming context, supporting background execution and stream termination.static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCallsLive(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools, Map<String, ToolConfirmation> toolConfirmations) Handles function calls in a live/streaming context with tool confirmations, supporting background execution and stream termination.static voidFunctions.populateClientFunctionCallId(Event modelResponseEvent) Populates missing function call IDs in the provided event's content.protected io.reactivex.rxjava3.core.Flowable<Event> BaseLlmFlow.postprocess(InvocationContext context, Event baseEventForLlmResponse, LlmRequest llmRequest, LlmResponse llmResponse) Post-processes the LLM response after receiving it from the LLM.Method parameters in com.google.adk.flows.llmflows with type arguments of type EventModifier and TypeMethodDescriptionRequestProcessor.RequestProcessingResult.create(LlmRequest updatedRequest, Iterable<Event> events) Creates a newRequestProcessor.RequestProcessingResult.ResponseProcessor.ResponseProcessingResult.create(LlmResponse updatedResponse, Iterable<Event> events, Optional<String> transferToAgent) Creates a newResponseProcessor.ResponseProcessingResult. -
Uses of Event in com.google.adk.plugins
Methods in com.google.adk.plugins that return types with arguments of type EventModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<Event> LoggingPlugin.onEventCallback(InvocationContext invocationContext, Event event) default io.reactivex.rxjava3.core.Maybe<Event> Plugin.onEventCallback(InvocationContext invocationContext, Event event) Callback executed after an event is yielded from runner.io.reactivex.rxjava3.core.Maybe<Event> PluginManager.onEventCallback(InvocationContext invocationContext, Event event) io.reactivex.rxjava3.core.Maybe<Event> PluginManager.runOnEventCallback(InvocationContext invocationContext, Event event) Methods in com.google.adk.plugins with parameters of type EventModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<Event> LoggingPlugin.onEventCallback(InvocationContext invocationContext, Event event) default io.reactivex.rxjava3.core.Maybe<Event> Plugin.onEventCallback(InvocationContext invocationContext, Event event) Callback executed after an event is yielded from runner.io.reactivex.rxjava3.core.Maybe<Event> PluginManager.onEventCallback(InvocationContext invocationContext, Event event) io.reactivex.rxjava3.core.Maybe<Event> PluginManager.runOnEventCallback(InvocationContext invocationContext, Event event) -
Uses of Event in com.google.adk.runner
Methods in com.google.adk.runner that return types with arguments of type EventModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Flowable<Event> Deprecated, for removal: This API element is subject to removal in a future version.Use runAsync with sessionId.io.reactivex.rxjava3.core.Flowable<Event> Runner.runAsync(Session session, com.google.genai.types.Content newMessage, RunConfig runConfig, Map<String, Object> stateDelta) Deprecated, for removal: This API element is subject to removal in a future version.Use runAsync with sessionId.io.reactivex.rxjava3.core.Flowable<Event> io.reactivex.rxjava3.core.Flowable<Event> Runner.runAsync(String userId, String sessionId, com.google.genai.types.Content newMessage, RunConfig runConfig) io.reactivex.rxjava3.core.Flowable<Event> Runner.runAsync(String userId, String sessionId, com.google.genai.types.Content newMessage, RunConfig runConfig, Map<String, Object> stateDelta) Runs the agent with an invocation-based mode.protected io.reactivex.rxjava3.core.Flowable<Event> Runner.runAsyncImpl(Session session, com.google.genai.types.Content newMessage, RunConfig runConfig, Map<String, Object> stateDelta) Runs the agent asynchronously using a provided Session object.io.reactivex.rxjava3.core.Flowable<Event> Runner.runLive(Session session, LiveRequestQueue liveRequestQueue, RunConfig runConfig) Runs the agent in live mode, appending generated events to the session.io.reactivex.rxjava3.core.Flowable<Event> Runner.runLive(String userId, String sessionId, LiveRequestQueue liveRequestQueue, RunConfig runConfig) Retrieves the session and runs the agent in live mode.io.reactivex.rxjava3.core.Flowable<Event> Runner.runWithSessionId(String sessionId, com.google.genai.types.Content newMessage, RunConfig runConfig) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Event in com.google.adk.sessions
Methods in com.google.adk.sessions that return types with arguments of type EventModifier and TypeMethodDescriptiondefault io.reactivex.rxjava3.core.Single<Event> BaseSessionService.appendEvent(Session session, Event event) Appends an event to an in-memory session object and updates the session's state based on the event's state delta, if applicable.io.reactivex.rxjava3.core.Single<Event> FirestoreSessionService.appendEvent(Session session, Event event) Appends an event to a session, updating the session state and persisting to Firestore.io.reactivex.rxjava3.core.Single<Event> InMemorySessionService.appendEvent(Session session, Event event) io.reactivex.rxjava3.core.Single<Event> VertexAiSessionService.appendEvent(Session session, Event event) abstract com.google.common.collect.ImmutableList<Event> ListEventsResponse.events()Session.events()Methods in com.google.adk.sessions with parameters of type EventModifier and TypeMethodDescriptiondefault io.reactivex.rxjava3.core.Single<Event> BaseSessionService.appendEvent(Session session, Event event) Appends an event to an in-memory session object and updates the session's state based on the event's state delta, if applicable.io.reactivex.rxjava3.core.Single<Event> FirestoreSessionService.appendEvent(Session session, Event event) Appends an event to a session, updating the session state and persisting to Firestore.io.reactivex.rxjava3.core.Single<Event> InMemorySessionService.appendEvent(Session session, Event event) io.reactivex.rxjava3.core.Single<Event> VertexAiSessionService.appendEvent(Session session, Event event) Method parameters in com.google.adk.sessions with type arguments of type Event -
Uses of Event in com.google.adk.summarizer
Methods in com.google.adk.summarizer that return types with arguments of type EventModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<Event> BaseEventSummarizer.summarizeEvents(List<Event> events) Compact a list of events into a single event.io.reactivex.rxjava3.core.Maybe<Event> LlmEventSummarizer.summarizeEvents(List<Event> events) Method parameters in com.google.adk.summarizer with type arguments of type EventModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<Event> BaseEventSummarizer.summarizeEvents(List<Event> events) Compact a list of events into a single event.io.reactivex.rxjava3.core.Maybe<Event> LlmEventSummarizer.summarizeEvents(List<Event> events) -
Uses of Event in com.google.adk.telemetry
Methods in com.google.adk.telemetry with parameters of type EventModifier and TypeMethodDescriptionstatic voidTracing.traceToolResponse(String eventId, Event functionResponseEvent) Traces tool response event. -
Uses of Event in com.google.adk.web.controller
Methods in com.google.adk.web.controller that return types with arguments of type EventModifier and TypeMethodDescriptionExecutionController.agentRun(AgentRunRequest request) Executes a non-streaming agent run for a given session and message.