Package io.dapr.client.domain
Class ConversationInput
java.lang.Object
io.dapr.client.domain.ConversationInput
Represents an input message for a conversation with an LLM.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe message content to send to the LLM.getRole()The role for the LLM to assume.booleanChecks if Personally Identifiable Information (PII) should be scrubbed before sending to the LLM.Set the role for LLM to assume.setScrubPii(boolean scrubPii) Enable obfuscation of sensitive information present in the content field.
-
Constructor Details
-
ConversationInput
Constructor.- Parameters:
content- for the llm.
-
-
Method Details
-
getContent
The message content to send to the LLM. Required- Returns:
- The content to be sent to the LLM.
-
getRole
The role for the LLM to assume.- Returns:
- this.
-
setRole
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:
trueif PII should be scrubbed,falseotherwise.
-
setScrubPii
Enable obfuscation of sensitive information present in the content field. Optional- Parameters:
scrubPii- A boolean indicating whether to remove PII.- Returns:
- this.
-