Interface AgentOutputMessage.Builder

  • Method Details

    • body

      The text of the agent's response.

      Parameters:
      body - The text of the agent's response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      The type of output message, which indicates how to interpret the agent's response.

      Parameters:
      type - The type of output message, which indicates how to interpret the agent's response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The type of output message, which indicates how to interpret the agent's response.

      Parameters:
      type - The type of output message, which indicates how to interpret the agent's response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • optionsList

      AgentOutputMessage.Builder optionsList(Collection<String> optionsList)

      A list of selectable options presented when the response type is options.

      Parameters:
      optionsList - A list of selectable options presented when the response type is options.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • optionsList

      AgentOutputMessage.Builder optionsList(String... optionsList)

      A list of selectable options presented when the response type is options.

      Parameters:
      optionsList - A list of selectable options presented when the response type is options.
      Returns:
      Returns a reference to this object so that method calls can be chained together.