forked from github/copilot-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPreToolUseHookOutput.java
More file actions
32 lines (29 loc) · 1.31 KB
/
PreToolUseHookOutput.java
File metadata and controls
32 lines (29 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------------------------------------------*/
package com.github.copilot.sdk.json;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonNode;
/**
* Output for a pre-tool-use hook.
*
* @param permissionDecision
* "allow", "deny", or "ask"
* @param permissionDecisionReason
* the reason for the permission decision
* @param modifiedArgs
* the modified tool arguments, or {@code null} to use original
* @param additionalContext
* additional context to provide to the model
* @param suppressOutput
* {@code true} to suppress output
* @since 1.0.6
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public record PreToolUseHookOutput(@JsonProperty("permissionDecision") String permissionDecision,
@JsonProperty("permissionDecisionReason") String permissionDecisionReason,
@JsonProperty("modifiedArgs") JsonNode modifiedArgs,
@JsonProperty("additionalContext") String additionalContext,
@JsonProperty("suppressOutput") Boolean suppressOutput) {
}