.NET: Revert ".NET: Support hosted code interpreter for skill script execution"#4385
Merged
SergeyMenshykh merged 1 commit intomainfrom Mar 2, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Reverts the earlier .NET “hosted code interpreter” script-execution support for Agent Skills while keeping the core file-based skills provider behavior.
Changes:
- Removes hosted code interpreter script-execution types, options, tests, and the Step02 sample.
- Updates
FileAgentSkillsProviderto use composite-format ({0}) prompt templating and adds validation for custom templates. - Renames/internalizes some skills-loading implementation types (frontmatter/skill/loader) consistent with the revert.
Reviewed changes
Copilot reviewed 22 out of 22 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| dotnet/tests/Microsoft.Agents.AI.UnitTests/AgentSkills/HostedCodeInterpreterFileAgentSkillScriptExecutorTests.cs | Removes tests for the hosted code interpreter script executor. |
| dotnet/tests/Microsoft.Agents.AI.UnitTests/AgentSkills/FileAgentSkillsProviderTests.cs | Switches custom prompt template placeholder to {0} and adds invalid-template constructor test. |
| dotnet/tests/Microsoft.Agents.AI.UnitTests/AgentSkills/FileAgentSkillScriptExecutorTests.cs | Removes integration tests for script executor wiring into the provider. |
| dotnet/tests/Microsoft.Agents.AI.UnitTests/AgentSkills/FileAgentSkillLoaderTests.cs | Updates frontmatter type usage and removes tests tied to the reverted resource parsing behavior. |
| dotnet/src/Microsoft.Agents.AI/Skills/SkillFrontmatter.cs | Renames/replaces the prior frontmatter type with an internal SkillFrontmatter. |
| dotnet/src/Microsoft.Agents.AI/Skills/HostedCodeInterpreterFileAgentSkillScriptExecutor.cs | Removes hosted code interpreter executor implementation. |
| dotnet/src/Microsoft.Agents.AI/Skills/FileAgentSkillsProviderOptions.cs | Removes script-executor option and documents {0} placeholder format. |
| dotnet/src/Microsoft.Agents.AI/Skills/FileAgentSkillsProvider.cs | Removes executor/tool merging logic; updates default prompt template and custom template handling. |
| dotnet/src/Microsoft.Agents.AI/Skills/FileAgentSkillScriptExecutor.cs | Removes script executor abstraction. |
| dotnet/src/Microsoft.Agents.AI/Skills/FileAgentSkillScriptExecutionDetails.cs | Removes script execution details model. |
| dotnet/src/Microsoft.Agents.AI/Skills/FileAgentSkillScriptExecutionContext.cs | Removes script execution context model. |
| dotnet/src/Microsoft.Agents.AI/Skills/FileAgentSkillLoader.cs | Internalizes loader, adjusts resource link regex, and internalizes resource read API. |
| dotnet/src/Microsoft.Agents.AI/Skills/FileAgentSkill.cs | Internalizes the skill model and updates it to use SkillFrontmatter. |
| dotnet/samples/02-agents/AgentSkills/README.md | Removes reference to the reverted Step02 sample. |
| dotnet/samples/02-agents/AgentSkills/Agent_Step02_ScriptExecutionWithCodeInterpreter/skills/password-generator/scripts/generate.py | Deletes script resource from the removed Step02 sample. |
| dotnet/samples/02-agents/AgentSkills/Agent_Step02_ScriptExecutionWithCodeInterpreter/skills/password-generator/references/PASSWORD_GUIDELINES.md | Deletes reference doc from the removed Step02 sample. |
| dotnet/samples/02-agents/AgentSkills/Agent_Step02_ScriptExecutionWithCodeInterpreter/skills/password-generator/SKILL.md | Deletes the sample skill definition for the removed Step02 sample. |
| dotnet/samples/02-agents/AgentSkills/Agent_Step02_ScriptExecutionWithCodeInterpreter/README.md | Deletes Step02 sample documentation. |
| dotnet/samples/02-agents/AgentSkills/Agent_Step02_ScriptExecutionWithCodeInterpreter/Program.cs | Deletes Step02 sample program. |
| dotnet/samples/02-agents/AgentSkills/Agent_Step02_ScriptExecutionWithCodeInterpreter/Agent_Step02_ScriptExecutionWithCodeInterpreter.csproj | Deletes Step02 sample project. |
| dotnet/samples/02-agents/AgentSkills/Agent_Step01_BasicSkills/Program.cs | Removes a warning comment block from the sample. |
| dotnet/agent-framework-dotnet.slnx | Removes Step02 sample project reference from the solution. |
dotnet/tests/Microsoft.Agents.AI.UnitTests/AgentSkills/FileAgentSkillsProviderTests.cs
Show resolved
Hide resolved
rogerbarreto
approved these changes
Mar 2, 2026
westey-m
approved these changes
Mar 2, 2026
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.
Reverts #4192 until there's further clarity regarding the design of script executors.