Interface CallResult.Builder

  • Method Details

    • callId

      CallResult.Builder callId(String callId)

      The identifier of the tool call that this result corresponds to.

      Parameters:
      callId - The identifier of the tool call that this result corresponds to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      The content returned by the tool execution, which can include text or other media types.

      Parameters:
      content - The content returned by the tool execution, which can include text or other media types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      The content returned by the tool execution, which can include text or other media types.

      Parameters:
      content - The content returned by the tool execution, which can include text or other media types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      The content returned by the tool execution, which can include text or other media types.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to content(List<CallResultContent>).

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