Interface ContentInjector
-
- All Implemented Interfaces:
public interface ContentInjectorInjects given 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.
-
-
Method Summary
Modifier and Type Method Description ChatMessageinject(List<Content> contents, ChatMessage chatMessage)Injects given Contents into a given ChatMessage. abstract UserMessageinject(List<Content> contents, UserMessage userMessage)Injects given Contents into a given UserMessage. -
-
Method Detail
-
inject
ChatMessage inject(List<Content> contents, ChatMessage chatMessage)
Injects given Contents into a given ChatMessage. This method has a default implementation in order to temporarily support current custom implementations of
ContentInjector. The default implementation will be removed soon.- Parameters:
contents- The list of Content to be injected.chatMessage- The ChatMessage into which the Contents are to be injected.- Returns:
The UserMessage with the injected Contents.
-
inject
@Deprecated() abstract UserMessage inject(List<Content> contents, UserMessage userMessage)
Injects given Contents into a given UserMessage.
- Parameters:
contents- The list of Content to be injected.userMessage- The UserMessage into which the Contents are to be injected.- Returns:
The UserMessage with the injected Contents.
-
-
-
-