Port the .NET fix from #6680 to Python.
The Python AgentSkillsProvider still swallows exceptions and returns a generic error string for script execution and resource reading, so the model can't self-correct. The .NET side addressed this in #6680 by adding an IncludeDetailedErrors option (script path rethrows by default, or surfaces the exception message when enabled) and rethrowing for resource reads.
This needs to be ported to Python.
Related: #6301
Port the .NET fix from #6680 to Python.
The Python AgentSkillsProvider still swallows exceptions and returns a generic error string for script execution and resource reading, so the model can't self-correct. The .NET side addressed this in #6680 by adding an
IncludeDetailedErrorsoption (script path rethrows by default, or surfaces the exception message when enabled) and rethrowing for resource reads.This needs to be ported to Python.
Related: #6301