AgentSkillsProviderOptions.IncludeDetailedErrors Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating whether detailed exception information is included in the error message returned to the model when a script execution fails.
public bool IncludeDetailedErrors { get; set; }
member this.IncludeDetailedErrors : bool with get, set
Public Property IncludeDetailedErrors As Boolean
Property Value
Remarks
When false (the default), exceptions propagate to the caller, allowing FunctionInvokingChatClient to apply its own IncludeDetailedErrors policy — which achieves the same effect without requiring this property to be set. When true, the exception message is appended to the error string returned directly to the model, enabling it to retry with different arguments. However, this may disclose raw exception details to the model. Exercise particular caution when enabling this for skills whose scripts originate from untrusted or third-party sources: a maliciously crafted script could throw an exception whose message embeds a prompt-injection payload, which would then be fed back to the model. Only enable this when the skills and their scripts come from a trusted source.