Description
When building skill content, AgentInlineSkillContentBuilder.Build(...) currently emits only:
- name
- description
- instructions
when a skill has no resources and no scripts.
As a result, the generated content does not explicitly tell the model that the skill does not provide any resources or scripts. This can lead the model to hallucinate resource names or script names and attempt to call:
• load_skill_resource
• run_skill_script
even though the skill does not actually define any resources or scripts.
Current Behavior
If resources and scripts are both empty or null, the generated content omits those sections entirely.
Example output:
<name>MySkill</name>
<description>...</description>
<instructions>
...
</instructions>
Expected Behavior
When a skill has no resources or scripts, the generated content should explicitly communicate that fact to the model, so it does not infer unsupported capabilities.
For example, the output could include empty or explicit markers such as:
<resources />
<scripts />
or another clear representation indicating that the skill does not define any resources or scripts.
Why This Matters
Without explicit guidance:
• the model may assume resources/scripts exist
• the model may invent resource names or script names
• the model may incorrectly attempt to call load_skill_resource or run_skill_script
• this can cause unnecessary tool calls and reduce response quality
Suggested Fix
Update AgentInlineSkillContentBuilder.Build(...) so that it always includes explicit information about the absence of:
• resources
• scripts
when those collections are empty or null.
This would make skill capabilities clearer and reduce hallucinated tool usage.
Code Sample
Error Messages / Stack Traces
Package Versions
1.9.0
.NET Version
.Net 10.0
Additional Context
No response
Description
When building skill content, AgentInlineSkillContentBuilder.Build(...) currently emits only:
when a skill has no resources and no scripts.
As a result, the generated content does not explicitly tell the model that the skill does not provide any resources or scripts. This can lead the model to hallucinate resource names or script names and attempt to call:
• load_skill_resource
• run_skill_script
even though the skill does not actually define any resources or scripts.
Current Behavior
If resources and scripts are both empty or null, the generated content omits those sections entirely.
Example output:
Expected Behavior
When a skill has no resources or scripts, the generated content should explicitly communicate that fact to the model, so it does not infer unsupported capabilities.
For example, the output could include empty or explicit markers such as:
or another clear representation indicating that the skill does not define any resources or scripts.
Why This Matters
Without explicit guidance:
• the model may assume resources/scripts exist
• the model may invent resource names or script names
• the model may incorrectly attempt to call load_skill_resource or run_skill_script
• this can cause unnecessary tool calls and reduce response quality
Suggested Fix
Update AgentInlineSkillContentBuilder.Build(...) so that it always includes explicit information about the absence of:
• resources
• scripts
when those collections are empty or null.
This would make skill capabilities clearer and reduce hallucinated tool usage.
Code Sample
Error Messages / Stack Traces
Package Versions
1.9.0
.NET Version
.Net 10.0
Additional Context
No response