Skip to content

FEAT add supports_system_prompt flag#1563

Merged
hannahwestra25 merged 2 commits intomicrosoft:mainfrom
hannahwestra25:hawestra/add_supports_system_prompt
Apr 3, 2026
Merged

FEAT add supports_system_prompt flag#1563
hannahwestra25 merged 2 commits intomicrosoft:mainfrom
hannahwestra25:hawestra/add_supports_system_prompt

Conversation

@hannahwestra25
Copy link
Copy Markdown
Contributor

Description

Add supports_system_prompt to the TargetCapabilities. This allows us to specify when a target can support system prompts (ie it can accept a privileged instruction (separate from user input) that is persisted and replayed as part of the conversation across turns). As with other TargetCapabilities, by default we set it to false and that default is overridden in the chat targets (note: PromptChatTarget will soon be deprecated and supports_system_prompt as well as other chat target capabilities will need to be overridden explicitly by the child classes)

Tests and Documentation

updated tests, currently running notebooks

Copy link
Copy Markdown
Contributor

@behnam-o behnam-o left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you!

@hannahwestra25 hannahwestra25 merged commit 28c8770 into microsoft:main Apr 3, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants