Class GPULlama3ResponseParser.ParsedResponse
java.lang.Object
dev.langchain4j.model.gpullama3.GPULlama3ResponseParser.ParsedResponse
- Enclosing class:
GPULlama3ResponseParser
Represents the parsed components of a GPULlama3 model response.
-
Constructor Summary
ConstructorsConstructorDescriptionParsedResponse
(String thinkingContent, String actualResponse) Creates a new ParsedResponse. -
Method Summary
Modifier and TypeMethodDescriptionReturns the actual response content with thinking tags removed.Returns the thinking content including <think> and </think> tags.boolean
Returns true if the response contained thinking content.
-
Constructor Details
-
ParsedResponse
-
-
Method Details
-
getThinkingContent
Returns the thinking content including <think> and </think> tags.- Returns:
- the thinking content with tags, or null if no thinking content was found
-
getActualResponse
Returns the actual response content with thinking tags removed.- Returns:
- the cleaned response content
-
hasThinking
public boolean hasThinking()Returns true if the response contained thinking content.- Returns:
- true if thinking content was found, false otherwise
-