Class LargeToolOutputConfig

java.lang.Object
com.github.copilot.rpc.LargeToolOutputConfig

public class LargeToolOutputConfig extends Object
Configuration for large tool output handling.

When a tool produces output exceeding getMaxSizeBytes(), the SDK writes the full output to a file in getOutputDirectory() and returns a truncated preview to the model.

Since:
1.3.0
  • Constructor Details

    • LargeToolOutputConfig

      public LargeToolOutputConfig()
  • Method Details

    • getEnabled

      public Boolean getEnabled()
      Gets whether large tool output handling is enabled.
      Returns:
      true if enabled, false if disabled, null for default
    • setEnabled

      public LargeToolOutputConfig setEnabled(Boolean enabled)
      Sets whether large tool output handling is enabled. Defaults to true when unset.
      Parameters:
      enabled - true to enable, false to disable
      Returns:
      this config for method chaining
    • getMaxSizeBytes

      public Long getMaxSizeBytes()
      Gets the maximum tool output size in bytes before it is redirected to a file.
      Returns:
      the maximum size in bytes, or null for default
    • setMaxSizeBytes

      public LargeToolOutputConfig setMaxSizeBytes(Long maxSizeBytes)
      Sets the maximum tool output size in bytes before it is redirected to a file.
      Parameters:
      maxSizeBytes - the maximum size in bytes
      Returns:
      this config for method chaining
    • getOutputDirectory

      public String getOutputDirectory()
      Gets the directory where large tool output files are written.
      Returns:
      the output directory path, or null for default
    • setOutputDirectory

      public LargeToolOutputConfig setOutputDirectory(String outputDirectory)
      Sets the directory where large tool output files are written.
      Parameters:
      outputDirectory - the output directory path
      Returns:
      this config for method chaining