Interface UserMessageTransformer
- All Superinterfaces:
BiFunction<ChatRequest, Object, ChatRequest>
- All Known Implementing Classes:
Context.AgenticScopeContextGenerator, Context.Summarizer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface UserMessageTransformer
extends BiFunction<ChatRequest, Object, ChatRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ChatRequestapply(ChatRequest chatRequest, Object memoryId) static Stringtext(UserMessage userMessage) The text contents of the given user message joined by new lines, or an empty string if it has none: the message can also have other contents, like the image sent to a multimodal agent.transformUserMessage(String userMessage, Object memoryId) Methods inherited from interface BiFunction
andThen
-
Method Details
-
apply
- Specified by:
applyin interfaceBiFunction<ChatRequest, Object, ChatRequest>
-
text
The text contents of the given user message joined by new lines, or an empty string if it has none: the message can also have other contents, like the image sent to a multimodal agent. -
transformUserMessage
-