Package com.embabel.agent.rag
Object SimpleRagResponseFormatter
-
- All Implemented Interfaces:
-
com.embabel.agent.rag.RagResponseFormatter
public class SimpleRagResponseFormatter implements RagResponseFormatter
Sensible default RagResponseFormatter
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringNO_RESULTS_FOUNDpublic final static SimpleRagResponseFormatterINSTANCE
-
Method Summary
Modifier and Type Method Description Stringformat(RagResponse ragResponse)Formats the given RagResponse into a string for inclusion in tool responses or prompts. -
-
Method Detail
-
format
String format(RagResponse ragResponse)
Formats the given RagResponse into a string for inclusion in tool responses or prompts.
- Parameters:
ragResponse- The RagResponse to format.- Returns:
A string representation of the RagResponse.
-
-
-
-