Interface ToolResultBlock.Builder

    • Method Detail

      • toolUseId

        ToolResultBlock.Builder toolUseId​(String toolUseId)

        The ID of the tool request that this is the result for.

        Parameters:
        toolUseId - The ID of the tool request that this is the result for.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • content

        ToolResultBlock.Builder content​(Collection<ToolResultContentBlock> content)

        The content for tool result content block.

        Parameters:
        content - The content for tool result content block.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • content

        ToolResultBlock.Builder content​(ToolResultContentBlock... content)

        The content for tool result content block.

        Parameters:
        content - The content for tool result content block.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        ToolResultBlock.Builder status​(String status)

        The status for the tool result content block.

        This field is only supported Anthropic Claude 3 models.

        Parameters:
        status - The status for the tool result content block.

        This field is only supported Anthropic Claude 3 models.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ToolResultStatus, ToolResultStatus
      • status

        ToolResultBlock.Builder status​(ToolResultStatus status)

        The status for the tool result content block.

        This field is only supported Anthropic Claude 3 models.

        Parameters:
        status - The status for the tool result content block.

        This field is only supported Anthropic Claude 3 models.

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