-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathUserPromptSubmittedHookInput.java
More file actions
28 lines (25 loc) · 1.04 KB
/
UserPromptSubmittedHookInput.java
File metadata and controls
28 lines (25 loc) · 1.04 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.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Input for a user-prompt-submitted hook.
* <p>
* This hook is invoked when the user submits a prompt, allowing you to
* intercept and modify the prompt before it is processed.
*
* @param timestamp
* the timestamp in milliseconds since epoch when the prompt was
* submitted
* @param cwd
* the current working directory
* @param prompt
* the user's prompt text
* @since 1.0.7
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public record UserPromptSubmittedHookInput(@JsonProperty("timestamp") long timestamp, @JsonProperty("cwd") String cwd,
@JsonProperty("prompt") String prompt) {
}