Interface CodeInterpreterInvocationOutput.Builder

  • Method Details

    • executionError

      CodeInterpreterInvocationOutput.Builder executionError(String executionError)

      Contains the error returned from code execution.

      Parameters:
      executionError - Contains the error returned from code execution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • executionOutput

      CodeInterpreterInvocationOutput.Builder executionOutput(String executionOutput)

      Contains the successful output returned from code execution

      Parameters:
      executionOutput - Contains the successful output returned from code execution
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • executionTimeout

      CodeInterpreterInvocationOutput.Builder executionTimeout(Boolean executionTimeout)

      Indicates if the execution of the code timed out.

      Parameters:
      executionTimeout - Indicates if the execution of the code timed out.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • files

      Contains output files, if generated by code execution.

      Parameters:
      files - Contains output files, if generated by code execution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • files

      Contains output files, if generated by code execution.

      Parameters:
      files - Contains output files, if generated by code execution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadata

      Contains information about the output from the code interpreter.

      Parameters:
      metadata - Contains information about the output from the code interpreter.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadata

      Contains information about the output from the code interpreter.

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

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

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