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 TypeMethodDescriptiondefault ChatMessage
inject
(List<Content> contents, ChatMessage chatMessage) Injects givenContent
s into a givenChatMessage
.inject
(List<Content> contents, UserMessage userMessage) Deprecated.
-
Method Details
-
inject
Injects givenContent
s into a givenChatMessage
.
This method has a default implementation in order to temporarily support current custom implementations ofContentInjector
. The default implementation will be removed soon.- Parameters:
contents
- The list ofContent
to be injected.chatMessage
- TheChatMessage
into which theContent
s are to be injected. Can be either aUserMessage
or aSystemMessage
.- Returns:
- The
UserMessage
with the injectedContent
s.
-
inject
Deprecated.Use/implementinject(List, ChatMessage)
instead.Injects givenContent
s into a givenUserMessage
.- Parameters:
contents
- The list ofContent
to be injected.userMessage
- TheUserMessage
into which theContent
s are to be injected.- Returns:
- The
UserMessage
with the injectedContent
s.
-
inject(List, ChatMessage)
instead.