forked from github/copilot-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSessionStartHookInput.java
More file actions
29 lines (26 loc) · 1.14 KB
/
SessionStartHookInput.java
File metadata and controls
29 lines (26 loc) · 1.14 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
/*---------------------------------------------------------------------------------------------
* 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 session-start hook.
* <p>
* This hook is invoked when a session starts, allowing you to perform
* initialization or modify the session configuration.
*
* @param timestamp
* the timestamp in milliseconds since epoch when the session started
* @param cwd
* the current working directory
* @param source
* the source: "startup", "resume", or "new"
* @param initialPrompt
* the initial prompt, or {@code null}
* @since 1.0.7
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public record SessionStartHookInput(@JsonProperty("timestamp") long timestamp, @JsonProperty("cwd") String cwd,
@JsonProperty("source") String source, @JsonProperty("initialPrompt") String initialPrompt) {
}