Files
SergeyMenshykh ade295b122 .NET: Add inline skills API (#4951)
* add inline skills

* Fix IDE1006 and IDE0004 formatting errors in test files

- Add 'Async' suffix to async test methods in FilteringAgentSkillsSourceTests,
  DeduplicatingAgentSkillsSourceTests, and AgentInMemorySkillsSourceTests
- Use pragma to suppress false-positive IDE0004 on casts needed for overload
  disambiguation in AgentInlineSkillTests and AgentInlineSkillResourceTests

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* address issues

* address comments

* make inline skills script and resource model classes internal

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ade295b122 ยท 2026-03-30 16:23:04 +00:00
History
..
2026-03-30 16:23:04 +00:00

AgentSkills Samples

Samples demonstrating Agent Skills capabilities. Each sample shows a different way to define and use skills.

Sample Description
Agent_Step01_FileBasedSkills Define skills as SKILL.md files on disk with reference documents. Uses a unit-converter skill.
Agent_Step02_CodeDefinedSkills Define skills entirely in C# code using AgentInlineSkill, with static/dynamic resources and scripts.

Key Concepts

File-Based vs Code-Defined Skills

Aspect File-Based Code-Defined
Definition SKILL.md files on disk AgentInlineSkill instances in C#
Resources All files in skill directory (filtered by extension) AddResource (static value or delegate-backed)
Scripts Supported via script executor delegate AddScript delegates
Discovery Automatic from directory path Explicit via constructor
Dynamic content No (static files only) Yes (factory delegates)
Reusability Copy skill directory Inline or shared instances

For single-source scenarios, use the AgentSkillsProvider constructors directly. To combine multiple skill types, use the AgentSkillsProviderBuilder.