You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each override supports four actions: `replace`, `remove`, `append`, and `prepend`. Unknown section IDs are handled gracefully—content is appended to additional instructions and a warning is emitted; `remove` on unknown sections is silently ignored.
[SystemPromptSections.Tone] =new() { Action=SectionOverrideAction.Replace, Content="Respond in a warm, professional tone. Be thorough in explanations." },
[SystemPromptSections.Guidelines] =new() { Action=SectionOverrideAction.Append, Content="\n* Always cite data sources" },
632
+
[SystemMessageSection.Tone] =new() { Action=SectionOverrideAction.Replace, Content="Respond in a warm, professional tone. Be thorough in explanations." },
[SystemMessageSection.Guidelines] =new() { Action=SectionOverrideAction.Append, Content="\n* Always cite data sources" },
635
635
},
636
636
Content="Focus on financial analysis and reporting."
637
637
}
638
638
});
639
639
```
640
640
641
-
Available section IDs are defined as constants on `SystemPromptSections`: `Identity`, `Tone`, `ToolEfficiency`, `EnvironmentContext`, `CodeChangeRules`, `Guidelines`, `Safety`, `ToolInstructions`, `CustomInstructions`, `LastInstructions`.
641
+
Available section IDs are defined as static properties on the `SystemMessageSection` struct: `Identity`, `Tone`, `ToolEfficiency`, `EnvironmentContext`, `CodeChangeRules`, `Guidelines`, `Safety`, `ToolInstructions`, `CustomInstructions`, `RuntimeInstructions`, `LastInstructions`.
642
642
643
643
Each section override supports four actions: `Replace`, `Remove`, `Append`, and `Prepend`. Unknown section IDs are handled gracefully: content is appended to additional instructions, and `Remove` overrides are silently ignored.
0 commit comments