接口 ContentInjector
- 所有已知实现类:
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.- 另请参阅:
-
方法概要
修饰符和类型方法说明default ChatMessageinject(List<Content> contents, ChatMessage chatMessage) Injects givenContents into a givenChatMessage.inject(List<Content> contents, UserMessage userMessage) 已过时。
-
方法详细资料
-
inject
Injects givenContents 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.- 参数:
contents- The list ofContentto be injected.chatMessage- TheChatMessageinto which theContents are to be injected. Can be either aUserMessageor aSystemMessage.- 返回:
- The
UserMessagewith the injectedContents.
-
inject
已过时。Use/implementinject(List, ChatMessage)instead.Injects givenContents into a givenUserMessage.- 参数:
contents- The list ofContentto be injected.userMessage- TheUserMessageinto which theContents are to be injected.- 返回:
- The
UserMessagewith the injectedContents.
-
inject(List, ChatMessage)instead.