-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathSystemMessageMode.java
More file actions
50 lines (43 loc) · 1.46 KB
/
SystemMessageMode.java
File metadata and controls
50 lines (43 loc) · 1.46 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------------------------------------------*/
package com.github.copilot.sdk;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Specifies how the system message should be applied to a session.
* <p>
* The system message controls the behavior and personality of the AI assistant.
* This enum determines whether to append custom instructions to the default
* system message or replace it entirely.
*
* @see com.github.copilot.sdk.json.SystemMessageConfig
*/
public enum SystemMessageMode {
/**
* Append the custom content to the default system message.
* <p>
* This mode preserves the default guardrails and behaviors while adding
* additional instructions or context.
*/
APPEND("append"),
/**
* Replace the default system message entirely with the custom content.
* <p>
* <strong>Warning:</strong> This mode removes all default guardrails and
* behaviors. Use with caution.
*/
REPLACE("replace");
private final String value;
SystemMessageMode(String value) {
this.value = value;
}
/**
* Returns the JSON value for this mode.
*
* @return the string value used in JSON serialization
*/
@JsonValue
public String getValue() {
return value;
}
}