Class GPULlama3ResponseParser.ParsedResponse

java.lang.Object
dev.langchain4j.model.gpullama3.GPULlama3ResponseParser.ParsedResponse
Enclosing class:
GPULlama3ResponseParser

public static class GPULlama3ResponseParser.ParsedResponse extends Object
Represents the parsed components of a GPULlama3 model response.
  • Constructor Details

    • ParsedResponse

      public ParsedResponse(String thinkingContent, String actualResponse)
      Creates a new ParsedResponse.
      Parameters:
      thinkingContent - the thinking content including tags, or null if none
      actualResponse - the cleaned response content
  • Method Details

    • getThinkingContent

      public String 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

      public String 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