Method GetDiscoveryContext
GetDiscoveryContext()
Gets the discovery context for all registered skills.
This generates a compact summary of all skills suitable for injection into an agent's system prompt or tool description.
public string GetDiscoveryContext()
Returns
- string
A formatted string listing all available skills.
Examples
Generating a skill list for agent prompts:
var registry = new SkillRegistry();
registry.LoadFromDirectory("./skills");
string skillList = registry.GetDiscoveryContext();
string systemPrompt = $"You have access to the following skills:\n{skillList}";