Package com.github.copilot.sdk.json
Class PostToolUseHookOutput
java.lang.Object
com.github.copilot.sdk.json.PostToolUseHookOutput
Output for a post-tool-use hook.
- Since:
- 1.0.6
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets additional context to provide to the model.com.fasterxml.jackson.databind.JsonNodeGets the modified tool result.Returns whether to suppress output.setAdditionalContext(String additionalContext) Sets additional context to provide to the model.setModifiedResult(com.fasterxml.jackson.databind.JsonNode modifiedResult) Sets the modified tool result.setSuppressOutput(Boolean suppressOutput) Sets whether to suppress output.
-
Constructor Details
-
PostToolUseHookOutput
public PostToolUseHookOutput()
-
-
Method Details
-
getModifiedResult
public com.fasterxml.jackson.databind.JsonNode getModifiedResult()Gets the modified tool result.- Returns:
- the modified result, or
nullto use original
-
setModifiedResult
public PostToolUseHookOutput setModifiedResult(com.fasterxml.jackson.databind.JsonNode modifiedResult) Sets the modified tool result.- Parameters:
modifiedResult- the modified result- Returns:
- this instance for method chaining
-
getAdditionalContext
Gets additional context to provide to the model.- Returns:
- the additional context
-
setAdditionalContext
Sets additional context to provide to the model.- Parameters:
additionalContext- the additional context- Returns:
- this instance for method chaining
-
getSuppressOutput
Returns whether to suppress output.- Returns:
trueto suppress output
-
setSuppressOutput
Sets whether to suppress output.- Parameters:
suppressOutput-trueto suppress output- Returns:
- this instance for method chaining
-