Interface PromptResponse.Builder

All Superinterfaces:
MetaCarrier.Builder<PromptResponse.Builder>
Enclosing interface:
PromptResponse

public static interface PromptResponse.Builder extends MetaCarrier.Builder<PromptResponse.Builder>
Builder for creating a prompt response
  • Method Details

    • setDescription

      PromptResponse.Builder setDescription(String description)
      Set a description for the prompt
      Parameters:
      description - the description
      Returns:
      this builder
    • addMessage

      PromptResponse.Builder addMessage(Role role, ContentBlock content)
      Add a message to the result
      Parameters:
      role - the sender's role
      content - the content of the message
      Returns:
      this builder
    • build

      Builds the prompt response
      Returns:
      the new prompt response