Interface ToolResultContentBlock.Builder

    • Method Detail

      • json

        ToolResultContentBlock.Builder json​(Document json)

        A tool result that is JSON format data.

        Parameters:
        json - A tool result that is JSON format data.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • text

        ToolResultContentBlock.Builder text​(String text)

        A tool result that is text.

        Parameters:
        text - A tool result that is text.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • image

        ToolResultContentBlock.Builder image​(ImageBlock image)

        A tool result that is an image.

        This field is only supported by Anthropic Claude 3 models.

        Parameters:
        image - A tool result that is an image.

        This field is only supported by Anthropic Claude 3 models.

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