.NET: Add description attribute to resource and script elements in skill body#11
Closed
SergeyMenshykh wants to merge 1 commit into
Closed
.NET: Add description attribute to resource and script elements in skill body#11SergeyMenshykh wants to merge 1 commit into
SergeyMenshykh wants to merge 1 commit into
Conversation
…ill body Include the optional description attribute on <resource> and <script> elements within <available_resources> and <available_scripts> blocks, aligning .NET with the Python implementation. The description is emitted only when non-null/non-empty and is XML-escaped. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
SergeyMenshykh
had a problem deploying
to
integration
June 26, 2026 11:08 — with
GitHub Actions
Failure
SergeyMenshykh
had a problem deploying
to
integration
June 26, 2026 11:08 — with
GitHub Actions
Failure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Re-adds the optional
descriptionattribute to<resource>and<script>elements within the<available_resources>and<available_scripts>XML blocks injected into skill bodies. This aligns .NET with the Python implementation, which already emits descriptions.Changes
AgentInlineSkillContentBuilder.cs— Emitdescription="..."attribute on<resource>and<script>elements when the description is non-null and non-empty. Values are XML-escaped.AgentInlineSkillContentBuilderTests.cs— Added tests for description rendering, XML escaping of descriptions, and empty-string description omission.Context
Descriptions were previously present but removed incidentally in microsoft#6343 during a broader XML restructuring. Python's
_create_resource_element()and_create_script_element()already include thedescriptionattribute.