Interface ContentInjector
- All Known Implementing Classes:
DefaultContentInjector
public interface ContentInjector
Injects given
The goal is to format and incorporate the
Content
s into a given UserMessage
.
The goal is to format and incorporate the
Content
s 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 givenContent
s into a givenChatMessage
.
-
Method Details
-
inject
Injects givenContent
s into a givenChatMessage
.- Parameters:
contents
- The list ofContent
to be injected.chatMessage
- TheChatMessage
into which theContent
s are to be injected. Currently, onlyUserMessage
is supported.- Returns:
- The
ChatMessage
with the injectedContent
s.
-