Package io.dapr.client.domain
Class ConversationRequest
java.lang.Object
io.dapr.client.domain.ConversationRequest
Represents a conversation configuration with details about component name,
conversation inputs, context identifier, PII scrubbing, and temperature control.
-
Constructor Summary
ConstructorsConstructorDescriptionConversationRequest(String name, List<ConversationInput> inputs) Constructs a DaprConversation with a component name and conversation inputs. -
Method Summary
Modifier and TypeMethodDescriptionGets the context identifier.Gets the list of Dapr conversation input.getName()Gets the conversation component name.doubleGets the temperature of the model.booleanChecks if PII scrubbing is enabled.setContextId(String contextId) Sets the context identifier.setScrubPii(boolean scrubPii) Enable obfuscation of sensitive information returning from the LLM.setTemperature(double temperature) Sets the temperature of the model.
-
Constructor Details
-
Method Details
-
getName
Gets the conversation component name.- Returns:
- the conversation component name
-
getInputs
Gets the list of Dapr conversation input.- Returns:
- the list of conversation input
-
getContextId
Gets the context identifier.- Returns:
- the context identifier
-
setContextId
Sets the context identifier.- Parameters:
contextId- the context identifier to set- Returns:
- the current instance of
ConversationRequest
-
isScrubPii
public boolean isScrubPii()Checks if PII scrubbing is enabled.- Returns:
- true if PII scrubbing is enabled, false otherwise
-
setScrubPii
Enable obfuscation of sensitive information returning from the LLM. Optional.- Parameters:
scrubPii- whether to enable PII scrubbing- Returns:
- the current instance of
ConversationRequest
-
getTemperature
public double getTemperature()Gets the temperature of the model. Used to optimize for consistency and creativity. Optional- Returns:
- the temperature value
-
setTemperature
Sets the temperature of the model. Used to optimize for consistency and creativity. Optional- Parameters:
temperature- the temperature value to set- Returns:
- the current instance of
ConversationRequest
-