Class SystemPromptSections

java.lang.Object
com.github.copilot.sdk.json.SystemPromptSections

public final class SystemPromptSections extends Object
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 Details

    • IDENTITY

      public static final String IDENTITY
      Agent identity preamble and mode statement.
      See Also:
    • TONE

      public static final String TONE
      Response style, conciseness rules, output formatting preferences.
      See Also:
    • TOOL_EFFICIENCY

      public static final String TOOL_EFFICIENCY
      Tool usage patterns, parallel calling, batching guidelines.
      See Also:
    • ENVIRONMENT_CONTEXT

      public static final String ENVIRONMENT_CONTEXT
      CWD, OS, git root, directory listing, available tools.
      See Also:
    • CODE_CHANGE_RULES

      public static final String CODE_CHANGE_RULES
      Coding rules, linting/testing, ecosystem tools, style.
      See Also:
    • GUIDELINES

      public static final String GUIDELINES
      Tips, behavioral best practices, behavioral guidelines.
      See Also:
    • SAFETY

      public static final String SAFETY
      Environment limitations, prohibited actions, security policies.
      See Also:
    • TOOL_INSTRUCTIONS

      public static final String TOOL_INSTRUCTIONS
      Per-tool usage instructions.
      See Also:
    • CUSTOM_INSTRUCTIONS

      public static final String CUSTOM_INSTRUCTIONS
      Repository and organization custom instructions.
      See Also:
    • LAST_INSTRUCTIONS

      public static final String LAST_INSTRUCTIONS
      End-of-prompt instructions: parallel tool calling, persistence, task completion.
      See Also: