Class ConversationInput

java.lang.Object
io.dapr.client.domain.ConversationInput

public class ConversationInput extends Object
Represents an input message for a conversation with an LLM.
  • Constructor Details

    • ConversationInput

      public ConversationInput(String content)
      Constructor.
      Parameters:
      content - for the llm.
  • Method Details

    • getContent

      public String getContent()
      The message content to send to the LLM. Required
      Returns:
      The content to be sent to the LLM.
    • getRole

      public String getRole()
      The role for the LLM to assume.
      Returns:
      this.
    • setRole

      public ConversationInput setRole(String role)
      Set the role for LLM to assume.
      Parameters:
      role - The role to assign to the message.
      Returns:
      this.
    • isScrubPii

      public boolean isScrubPii()
      Checks if Personally Identifiable Information (PII) should be scrubbed before sending to the LLM.
      Returns:
      true if PII should be scrubbed, false otherwise.
    • setScrubPii

      public ConversationInput setScrubPii(boolean scrubPii)
      Enable obfuscation of sensitive information present in the content field. Optional
      Parameters:
      scrubPii - A boolean indicating whether to remove PII.
      Returns:
      this.