Interface ContentInjector
- All Known Implementing Classes:
DefaultContentInjector
public interface ContentInjector
Injects given
The goal is to format and incorporate the
Contents into a given UserMessage.
The goal is to format and incorporate the
Contents into the original UserMessage
enabling the LLM to utilize it for generating a grounded response.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioninject(List<Content> contents, ChatMessage chatMessage) Injects givenContents into a givenChatMessage.
-
Method Details
-
inject
Injects givenContents into a givenChatMessage.- Parameters:
contents- The list ofContentto be injected.chatMessage- TheChatMessageinto which theContents are to be injected. Currently, onlyUserMessageis supported.- Returns:
- The
ChatMessagewith the injectedContents.
-