-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathUserPromptSubmittedHookOutput.java
More file actions
28 lines (25 loc) · 1.12 KB
/
UserPromptSubmittedHookOutput.java
File metadata and controls
28 lines (25 loc) · 1.12 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
/*---------------------------------------------------------------------------------------------
* 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;
/**
* Output for a user-prompt-submitted hook.
* <p>
* Allows modifying the user's prompt before processing.
*
* @param modifiedPrompt
* the modified prompt to use instead of the original, or
* {@code null} to use the original
* @param additionalContext
* additional context to be added to the prompt, or {@code null}
* @param suppressOutput
* {@code true} to suppress output, or {@code null}
* @since 1.0.7
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public record UserPromptSubmittedHookOutput(@JsonProperty("modifiedPrompt") String modifiedPrompt,
@JsonProperty("additionalContext") String additionalContext,
@JsonProperty("suppressOutput") Boolean suppressOutput) {
}