Class ConversationPreprocessor.PreparedInput
java.lang.Object
com.google.adk.a2a.converters.ConversationPreprocessor.PreparedInput
- Enclosing class:
ConversationPreprocessor
Immutable value that surfaces the results of preprocessing.
All fields are deliberately exposed to avoid additional AutoValue dependencies in this internal module.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.google.common.collect.ImmutableList<Event> Historical events that should remain in the session transcript.final Optional<com.google.genai.types.Content> Extracted user message content, if a qualifying text event was found.The concrete event that supplieduserContent, for callers needing metadata. -
Constructor Summary
ConstructorsConstructorDescriptionPreparedInput(com.google.common.collect.ImmutableList<Event> historyEvents, Optional<com.google.genai.types.Content> userContent, Optional<Event> userEvent) Creates a new instance. -
Method Summary
-
Field Details
-
historyEvents
Historical events that should remain in the session transcript. -
userContent
Extracted user message content, if a qualifying text event was found. -
userEvent
The concrete event that supplieduserContent, 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 streamuserContent- optional content to place on the pending user messageuserEvent- optional original event that containeduserContent
-