java.lang.Object
com.github.copilot.rpc.PostToolUseFailureHookOutput
Output for a post-tool-use-failure hook.
Only getAdditionalContext() is consumed by the host CLI — it is
appended as hidden guidance to the model alongside the failed tool result.
- Since:
- 1.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the additional context to inject into the conversation.setAdditionalContext(String additionalContext) Sets the additional context to inject into the conversation for the language model.
-
Constructor Details
-
PostToolUseFailureHookOutput
public PostToolUseFailureHookOutput()
-
-
Method Details
-
getAdditionalContext
Gets the additional context to inject into the conversation.- Returns:
- the additional context, or
null
-
setAdditionalContext
Sets the additional context to inject into the conversation for the language model.- Parameters:
additionalContext- the additional context- Returns:
- this instance for method chaining
-