Is anthropic or openai skills will be abstracted in api? #7233
-
|
Like tool call, just connect with mcp server and voila agent will call the tools, how about skills? Will we have api like assign skill directory then ai will have that skill? Or is this something i have to implement by myself? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
If you use the official Anthropic C# SDK you can use server-side skills with IChatClient and MEAI like this: var options = new ChatOptions
{
ModelId = "claude-sonnet-4-5-20250929",
MaxOutputTokens = 4096,
Tools =
[
new BetaSkillParams { Type = BetaSkillParamsType.Anthropic, SkillID = "pptx", Version = "latest" }.AsAITool(),
new BetaSkillParams { Type = BetaSkillParamsType.Anthropic, SkillID = "xlsx", Version = "latest" }.AsAITool(),
]
};
var response = await chatClient.GetResponseAsync(messages, options);For client-side skills that follow the agentskill specification, I don't think it is possible to have one single pattern as there are several paradigms, but if your agent has bash and/or file read tools, then you can relatively easily implement a skill discovery service which puts the skill frontmatter into system context along with instructions on how to load skills (ie by reading the SKILL.md file). However, some prefer to load skills using a dedicated tool, which also gives you the option to load it into system context (beware of the security risk in doing this). This also lets you unload skills with a dedicated tool, whereas file-based skill implementations rely on generic context curation mechanisms. |
Beta Was this translation helpful? Give feedback.
If you use the official Anthropic C# SDK you can use server-side skills with IChatClient and MEAI like this:
For client-side skills that follow the agentskill specification, I don't think it is possible to have one single pattern as there are several paradig…