Package com.github.copilot.sdk.json
Class SystemPromptSections
java.lang.Object
com.github.copilot.sdk.json.SystemPromptSections
Well-known system prompt section identifiers for use with
SystemMessageMode#CUSTOMIZE mode.
Each constant names a section of the default Copilot system prompt. Pass
these as keys in the sections map of SystemMessageConfig to
override individual sections.
Example
var config = new SystemMessageConfig().setMode(SystemMessageMode.CUSTOMIZE).setSections(Map.of(
SystemPromptSections.TONE,
new SectionOverride().setAction(SectionOverrideAction.REPLACE).setContent("Always be concise."),
SystemPromptSections.CODE_CHANGE_RULES, new SectionOverride().setAction(SectionOverrideAction.REMOVE)));
- Since:
- 1.2.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCoding rules, linting/testing, ecosystem tools, style.static final StringRepository and organization custom instructions.static final StringCWD, OS, git root, directory listing, available tools.static final StringTips, behavioral best practices, behavioral guidelines.static final StringAgent identity preamble and mode statement.static final StringEnd-of-prompt instructions: parallel tool calling, persistence, task completion.static final StringEnvironment limitations, prohibited actions, security policies.static final StringResponse style, conciseness rules, output formatting preferences.static final StringTool usage patterns, parallel calling, batching guidelines.static final StringPer-tool usage instructions. -
Method Summary
-
Field Details
-
IDENTITY
Agent identity preamble and mode statement.- See Also:
-
TONE
Response style, conciseness rules, output formatting preferences.- See Also:
-
TOOL_EFFICIENCY
Tool usage patterns, parallel calling, batching guidelines.- See Also:
-
ENVIRONMENT_CONTEXT
CWD, OS, git root, directory listing, available tools.- See Also:
-
CODE_CHANGE_RULES
Coding rules, linting/testing, ecosystem tools, style.- See Also:
-
GUIDELINES
Tips, behavioral best practices, behavioral guidelines.- See Also:
-
SAFETY
Environment limitations, prohibited actions, security policies.- See Also:
-
TOOL_INSTRUCTIONS
Per-tool usage instructions.- See Also:
-
CUSTOM_INSTRUCTIONS
Repository and organization custom instructions.- See Also:
-
LAST_INSTRUCTIONS
End-of-prompt instructions: parallel tool calling, persistence, task completion.- See Also:
-