Interface ToolResultContentBlock.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ToolResultContentBlock.Builder,ToolResultContentBlock>, SdkBuilder<ToolResultContentBlock.Builder,ToolResultContentBlock>, SdkPojo
Enclosing class:
ToolResultContentBlock

public static interface ToolResultContentBlock.Builder extends SdkPojo, CopyableBuilder<ToolResultContentBlock.Builder,ToolResultContentBlock>
  • Method Details

    • 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

      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

      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.
    • image

      A tool result that is an image.

      This field is only supported by Anthropic Claude 3 models.

      This is a convenience method that creates an instance of the ImageBlock.Builder avoiding the need to create one manually via ImageBlock.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to image(ImageBlock).

      Parameters:
      image - a consumer that will call methods on ImageBlock.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: