# Uses of Class
com.google.adk.events.Event

Packages that use Event
Package
Description
com.google.adk.a2a.agent
com.google.adk.a2a.converters
com.google.adk.a2a.executor
com.google.adk.agents
com.google.adk.events
com.google.adk.flows
com.google.adk.flows.llmflows
com.google.adk.plugins
com.google.adk.plugins.agentanalytics
com.google.adk.runner
com.google.adk.sessions
com.google.adk.summarizer
com.google.adk.telemetry
com.google.adk.web.controller

- ## Uses of Event in com.google.adk.a2a.agent

  Methods in com.google.adk.a2a.agent that return types with arguments of type Event
  Modifier and Type
  Method
  Description
  `protected 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

  Methods in com.google.adk.a2a.converters that return Event
  Modifier and Type
  Method
  Description
  `static Event`
  ResponseConverter.`artifactToEvent(io.a2a.spec.Artifact artifact, InvocationContext invocationContext)`
  Converts an artifact to an ADK event.
  `static @Nullable Event`
  EventConverter.`findUserFunctionCall(List<Event> events)`
  Returns the last user function call event from the list of events.
  `static Event`
  ResponseConverter.`messageToEvent(io.a2a.spec.Message message, InvocationContext invocationContext)`
  Converts an A2A message back to ADK events.
  `static Event`
  ResponseConverter.`messageToEvent(io.a2a.spec.Message message, InvocationContext invocationContext, boolean isPending)`
  Converts an A2A message back to ADK events.
  `static Event`
  ResponseConverter.`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 Event`
  ResponseConverter.`taskToEvent(io.a2a.spec.Task task, InvocationContext invocationContext)`
  Converts an A2A `Task` to an ADK `Event`.
  Methods in com.google.adk.a2a.converters that return types with arguments of type Event
  Modifier and Type
  Method
  Description
  `static Optional<Event>`
  ResponseConverter.`clientEventToEvent(io.a2a.client.ClientEvent event, InvocationContext invocationContext)`
  Converts a A2A `ClientEvent` to an ADK `Event`, based on the event type.
  Methods in com.google.adk.a2a.converters with parameters of type Event
  Modifier and Type
  Method
  Description
  `static String`
  EventConverter.`contextId(Event event)`
  Returns the context ID from the event.
  `static String`
  EventConverter.`taskId(Event event)`
  Returns the task ID from the event.
  Method parameters in com.google.adk.a2a.converters with type arguments of type Event
  Modifier and Type
  Method
  Description
  `static @Nullable Event`
  EventConverter.`findUserFunctionCall(List<Event> events)`
  Returns the last user function call event from the list of events.

- ## Uses of Event in com.google.adk.a2a.executor

  Methods in com.google.adk.a2a.executor with parameters of type Event
  Modifier and Type
  Method
  Description
  `io.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 Event
  Modifier and Type
  Method
  Description
  `List<Event>`
  PlanningContext.`events()`
  Returns all events in the current session.
  `List<Event>`
  ReadonlyContext.`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>`
  PlannerAgent.`runAsyncImpl(InvocationContext invocationContext)`
  `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>`
  PlannerAgent.`runLiveImpl(InvocationContext invocationContext)`
  `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 Event
  Modifier and Type
  Class
  Description
  `class`
  `EventStream`
  Iterable stream of `Event` objects.
  Methods in com.google.adk.events that return Event
  Modifier and Type
  Method
  Description
  `Event`
  Event.Builder.`build()`
  `static Event`
  Event.`fromJson(String json)`
  Parses an event from a JSON string.
  Methods in com.google.adk.events that return types with arguments of type Event
  Modifier and Type
  Method
  Description
  `Iterator<Event>`
  EventStream.`iterator()`
  Returns an iterator that fetches events lazily.
  Constructor parameters in com.google.adk.events with type arguments of type Event
  Modifier
  Constructor
  Description
  ``
  `EventStream(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 Event
  Modifier and Type
  Method
  Description
  `io.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 Event
  Modifier and Type
  Method
  Description
  `static Event`
  OutputSchema.`createFinalModelResponseEvent(InvocationContext context, String jsonResponse)`
  Create a final model response event from set_model_response JSON.
  Methods in com.google.adk.flows.llmflows that return types with arguments of type Event
  Modifier and Type
  Method
  Description
  `abstract Iterable<Event>`
  RequestProcessor.RequestProcessingResult.`events()`
  Events generated during processing.
  `abstract Iterable<Event>`
  ResponseProcessor.ResponseProcessingResult.`events()`
  Events generated during processing.
  `static Optional<Event>`
  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, io.opentelemetry.context.Context parentContext)`
  Post-processes the LLM response after receiving it from the LLM.
  `io.reactivex.rxjava3.core.Flowable<Event>`
  BaseLlmFlow.`run(InvocationContext invocationContext)`
  Executes the full LLM flow by repeatedly calling `BaseLlmFlow.runOneStep(Context, 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 Event
  Modifier and Type
  Method
  Description
  `static Optional<Event>`
  Functions.`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 Optional<String>`
  OutputSchema.`getStructuredModelResponse(Event functionResponseEvent)`
  Check if function response contains set_model_response and extract JSON.
  `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 void`
  Functions.`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, io.opentelemetry.context.Context parentContext)`
  Post-processes the LLM response after receiving it from the LLM.
  Method parameters in com.google.adk.flows.llmflows with type arguments of type Event
  Modifier and Type
  Method
  Description
  `static RequestProcessor.RequestProcessingResult`
  RequestProcessor.RequestProcessingResult.`create(LlmRequest updatedRequest, Iterable<Event> events)`
  Creates a new `RequestProcessor.RequestProcessingResult`.
  `static ResponseProcessor.ResponseProcessingResult`
  ResponseProcessor.ResponseProcessingResult.`create(LlmResponse updatedResponse, Iterable<Event> events)`
  `static ResponseProcessor.ResponseProcessingResult`
  ResponseProcessor.ResponseProcessingResult.`create(LlmResponse updatedResponse, Iterable<Event> events, String transferToAgent)`

- ## Uses of Event in com.google.adk.plugins

  Methods in com.google.adk.plugins that return types with arguments of type Event
  Modifier and Type
  Method
  Description
  `io.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)`
  Methods in com.google.adk.plugins with parameters of type Event
  Modifier and Type
  Method
  Description
  `io.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)`

- ## Uses of Event in com.google.adk.plugins.agentanalytics

  Methods in com.google.adk.plugins.agentanalytics that return types with arguments of type Event
  Modifier and Type
  Method
  Description
  `io.reactivex.rxjava3.core.Maybe<Event>`
  BigQueryAgentAnalyticsPlugin.`onEventCallback(InvocationContext invocationContext, Event event)`
  Methods in com.google.adk.plugins.agentanalytics with parameters of type Event
  Modifier and Type
  Method
  Description
  `io.reactivex.rxjava3.core.Maybe<Event>`
  BigQueryAgentAnalyticsPlugin.`onEventCallback(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 Event
  Modifier and Type
  Method
  Description
  `io.reactivex.rxjava3.core.Flowable<Event>`
  Runner.`runAsync(SessionKey sessionKey, com.google.genai.types.Content newMessage)`
  See `Runner.runAsync(String, String, Content, RunConfig, Map)`.
  `io.reactivex.rxjava3.core.Flowable<Event>`
  Runner.`runAsync(SessionKey sessionKey, com.google.genai.types.Content newMessage, RunConfig runConfig)`
  See `Runner.runAsync(String, String, Content, RunConfig, Map)`.
  `io.reactivex.rxjava3.core.Flowable<Event>`
  Runner.`runAsync(SessionKey sessionKey, com.google.genai.types.Content newMessage, RunConfig runConfig, @Nullable Map<String,Object> stateDelta)`
  See `Runner.runAsync(String, String, Content, RunConfig, Map)`.
  `io.reactivex.rxjava3.core.Flowable<Event>`
  Runner.`runAsync(String userId, String sessionId, com.google.genai.types.Content newMessage)`
  See `Runner.runAsync(String, String, Content, RunConfig, Map)`.
  `io.reactivex.rxjava3.core.Flowable<Event>`
  Runner.`runAsync(String userId, String sessionId, com.google.genai.types.Content newMessage, RunConfig runConfig)`
  See `Runner.runAsync(String, String, Content, RunConfig, Map)`.
  `io.reactivex.rxjava3.core.Flowable<Event>`
  Runner.`runAsync(String userId, String sessionId, com.google.genai.types.Content newMessage, RunConfig runConfig, @Nullable 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, @Nullable Map<String,Object> stateDelta)`
  Runs the agent asynchronously using a provided Session object.
  `io.reactivex.rxjava3.core.Flowable<Event>`
  Runner.`runLive(SessionKey sessionKey, LiveRequestQueue liveRequestQueue, RunConfig runConfig)`
  Retrieves the session and runs the agent in live mode.
  `io.reactivex.rxjava3.core.Flowable<Event>`
  Runner.`runLive(Session session, LiveRequestQueue liveRequestQueue, RunConfig runConfig)`
  `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.
  `protected io.reactivex.rxjava3.core.Flowable<Event>`
  Runner.`runLiveImpl(Session session, @Nullable LiveRequestQueue liveRequestQueue, RunConfig runConfig)`
  Runs the agent in live mode, appending generated events to the session.

- ## Uses of Event in com.google.adk.sessions

  Methods in com.google.adk.sessions that return types with arguments of type Event
  Modifier and Type
  Method
  Description
  `default 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()`
  `List<Event>`
  Session.`events()`
  Methods in com.google.adk.sessions with parameters of type Event
  Modifier and Type
  Method
  Description
  `default 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
  Modifier and Type
  Method
  Description
  `abstract ListEventsResponse.Builder`
  ListEventsResponse.Builder.`events(List<Event> events)`
  `Session.Builder`
  Session.Builder.`events(List<Event> events)`

- ## Uses of Event in com.google.adk.summarizer

  Methods in com.google.adk.summarizer that return types with arguments of type Event
  Modifier and Type
  Method
  Description
  `io.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 Event
  Modifier and Type
  Method
  Description
  `io.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 Event
  Modifier and Type
  Method
  Description
  `static void`
  Tracing.`traceMergedToolCalls(io.opentelemetry.api.trace.Span span, String responseEventId, Event functionResponseEvent)`
  Traces merged tool call events.
  `static void`
  Tracing.`traceToolExecution(io.opentelemetry.api.trace.Span span, String toolName, String toolDescription, String toolType, Map<String,Object> args, @Nullable Event functionResponseEvent, @Nullable Exception error)`
  Traces a tool execution, including its arguments, response, and any potential error.

- ## Uses of Event in com.google.adk.web.controller

  Methods in com.google.adk.web.controller that return types with arguments of type Event
  Modifier and Type
  Method
  Description
  `List<Event>`
  ExecutionController.`agentRun(AgentRunRequest request)`
  Executes a non-streaming agent run for a given session and message.