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 Type
    Method
    Description
    default ChatRequest
    apply(ChatRequest chatRequest, Object memoryId)
     
    static String
    text(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