Class ConversationRequest

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

public class ConversationRequest extends Object
Represents a conversation configuration with details about component name, conversation inputs, context identifier, PII scrubbing, and temperature control.
  • Constructor Details

    • ConversationRequest

      public ConversationRequest(String name, List<ConversationInput> inputs)
      Constructs a DaprConversation with a component name and conversation inputs.
      Parameters:
      name - The name of the Dapr conversation component. See a list of all available conversation components
      inputs - the list of Dapr conversation inputs
      See Also:
  • Method Details

    • getName

      public String getName()
      Gets the conversation component name.
      Returns:
      the conversation component name
    • getInputs

      public List<ConversationInput> getInputs()
      Gets the list of Dapr conversation input.
      Returns:
      the list of conversation input
    • getContextId

      public String getContextId()
      Gets the context identifier.
      Returns:
      the context identifier
    • setContextId

      public ConversationRequest setContextId(String contextId)
      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

      public ConversationRequest setScrubPii(boolean scrubPii)
      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

      public ConversationRequest setTemperature(double temperature)
      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