Interface PromptTemplate.Builder

  • Method Details

    • textPromptTemplate

      PromptTemplate.Builder textPromptTemplate(String textPromptTemplate)

      The template for the prompt that's sent to the model for response generation. You can include prompt placeholders, which become replaced before the prompt is sent to the model to provide instructions and context to the model. In addition, you can include XML tags to delineate meaningful sections of the prompt template.

      For more information, see Knowledge base prompt template and Use XML tags with Anthropic Claude models.

      Parameters:
      textPromptTemplate - The template for the prompt that's sent to the model for response generation. You can include prompt placeholders, which become replaced before the prompt is sent to the model to provide instructions and context to the model. In addition, you can include XML tags to delineate meaningful sections of the prompt template.

      For more information, see Knowledge base prompt template and Use XML tags with Anthropic Claude models.

      Returns:
      Returns a reference to this object so that method calls can be chained together.