Class ConversationPreprocessor.PreparedInput

java.lang.Object
com.google.adk.a2a.converters.ConversationPreprocessor.PreparedInput
Enclosing class:
ConversationPreprocessor

public static final class ConversationPreprocessor.PreparedInput extends Object
Immutable value that surfaces the results of preprocessing.

All fields are deliberately exposed to avoid additional AutoValue dependencies in this internal module.

  • Field Details

    • historyEvents

      public final com.google.common.collect.ImmutableList<Event> historyEvents
      Historical events that should remain in the session transcript.
    • userContent

      public final Optional<com.google.genai.types.Content> userContent
      Extracted user message content, if a qualifying text event was found.
    • userEvent

      public final Optional<Event> userEvent
      The concrete event that supplied userContent, for callers needing metadata.
  • Constructor Details

    • PreparedInput

      public PreparedInput(com.google.common.collect.ImmutableList<Event> historyEvents, Optional<com.google.genai.types.Content> userContent, Optional<Event> userEvent)
      Creates a new instance.
      Parameters:
      historyEvents - ordered historical events retained in the session stream
      userContent - optional content to place on the pending user message
      userEvent - optional original event that contained userContent