java.lang.Object
com.github.copilot.rpc.LargeToolOutputConfig
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets whether large tool output handling is enabled.Gets the maximum tool output size in bytes before it is redirected to a file.Gets the directory where large tool output files are written.setEnabled(Boolean enabled) Sets whether large tool output handling is enabled.setMaxSizeBytes(Long maxSizeBytes) Sets the maximum tool output size in bytes before it is redirected to a file.setOutputDirectory(String outputDirectory) Sets the directory where large tool output files are written.
-
Constructor Details
-
LargeToolOutputConfig
public LargeToolOutputConfig()
-
-
Method Details
-
getEnabled
Gets whether large tool output handling is enabled.- Returns:
trueif enabled,falseif disabled,nullfor default
-
setEnabled
Sets whether large tool output handling is enabled. Defaults totruewhen unset.- Parameters:
enabled-trueto enable,falseto disable- Returns:
- this config for method chaining
-
getMaxSizeBytes
Gets the maximum tool output size in bytes before it is redirected to a file.- Returns:
- the maximum size in bytes, or
nullfor default
-
setMaxSizeBytes
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
Gets the directory where large tool output files are written.- Returns:
- the output directory path, or
nullfor default
-
setOutputDirectory
Sets the directory where large tool output files are written.- Parameters:
outputDirectory- the output directory path- Returns:
- this config for method chaining
-