forked from github/copilot-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSessionEndHookOutput.java
More file actions
29 lines (25 loc) · 1.05 KB
/
SessionEndHookOutput.java
File metadata and controls
29 lines (25 loc) · 1.05 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 java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Output for a session-end hook.
* <p>
* Allows specifying cleanup actions and session summary.
*
* @param suppressOutput
* {@code true} to suppress output, or {@code null}
* @param cleanupActions
* the cleanup actions to perform, or {@code null}
* @param sessionSummary
* the session summary, or {@code null}
* @since 1.0.7
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public record SessionEndHookOutput(@JsonProperty("suppressOutput") Boolean suppressOutput,
@JsonProperty("cleanupActions") List<String> cleanupActions,
@JsonProperty("sessionSummary") String sessionSummary) {
}