From fda243c400c9e82220fc429271493f06db770535 Mon Sep 17 00:00:00 2001 From: Giles Odigwe Date: Thu, 9 Jul 2026 15:39:34 -0700 Subject: [PATCH] Python: Fix read_skill_resource instruction dropping .md extension The RESOURCE_INSTRUCTIONS example told the model to use eferences/FAQ instead of eferences/FAQ.md, contradicting the actual exact-match resource lookup (which lists and matches names including the extension). This caused read_skill_resource to fail with 'Resource not found'. Align the example with the .NET original. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- python/packages/core/agent_framework/_skills.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/packages/core/agent_framework/_skills.py b/python/packages/core/agent_framework/_skills.py index 8503308c0a2..ba709768091 100644 --- a/python/packages/core/agent_framework/_skills.py +++ b/python/packages/core/agent_framework/_skills.py @@ -1803,7 +1803,7 @@ def _indent_width(s: str) -> int: RESOURCE_INSTRUCTIONS: Final[str] = ( "- Use `read_skill_resource` to read any referenced resources, using the name exactly as listed\n" - ' (e.g. `"style-guide"` not `"style-guide.md"`, `"references/FAQ"` not `"FAQ.md"`).\n' + ' (e.g. `"style-guide"` not `"style-guide.md"`, `"references/FAQ.md"` not `"FAQ.md"`).\n' ) SCRIPT_RUNNER_INSTRUCTIONS: Final[str] = (