Interface ToolArguments.Builder

  • Method Details

    • code

      The code to execute in a code interpreter session. This is the source code in the specified programming language that will be executed by the code interpreter.

      Parameters:
      code - The code to execute in a code interpreter session. This is the source code in the specified programming language that will be executed by the code interpreter.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • language

      ToolArguments.Builder language(String language)

      The programming language of the code to execute. This tells the code interpreter which language runtime to use for execution. Common values include 'python', 'javascript', and 'r'.

      Parameters:
      language - The programming language of the code to execute. This tells the code interpreter which language runtime to use for execution. Common values include 'python', 'javascript', and 'r'.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • language

      The programming language of the code to execute. This tells the code interpreter which language runtime to use for execution. Common values include 'python', 'javascript', and 'r'.

      Parameters:
      language - The programming language of the code to execute. This tells the code interpreter which language runtime to use for execution. Common values include 'python', 'javascript', and 'r'.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clearContext

      ToolArguments.Builder clearContext(Boolean clearContext)

      Whether to clear the context for the tool.

      Parameters:
      clearContext - Whether to clear the context for the tool.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • command

      ToolArguments.Builder command(String command)

      The command to execute with the tool.

      Parameters:
      command - The command to execute with the tool.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • path

      The path for the tool operation.

      Parameters:
      path - The path for the tool operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paths

      The paths for the tool operation.

      Parameters:
      paths - The paths for the tool operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paths

      ToolArguments.Builder paths(String... paths)

      The paths for the tool operation.

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

      The content for the tool operation.

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

      The content for the tool operation.

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

      The content for the tool operation.

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

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

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

      ToolArguments.Builder directoryPath(String directoryPath)

      The directory path for the tool operation.

      Parameters:
      directoryPath - The directory path for the tool operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • taskId

      ToolArguments.Builder taskId(String taskId)

      The identifier of the task for the tool operation.

      Parameters:
      taskId - The identifier of the task for the tool operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.