Delen via


FunctionInvokingChatClient.RetryOnError Property

Definition

Gets or sets a value indicating whether to handle exceptions that occur during function calls.

public:
 property bool RetryOnError { bool get(); void set(bool value); };
public bool RetryOnError { get; set; }
member this.RetryOnError : bool with get, set
Public Property RetryOnError As Boolean

Property Value

Remarks

If the value is false, then if a function call fails with an exception, the underlying IChatClient will be instructed to give a response without invoking any further functions.

If the value is true, the underlying IChatClient will be allowed to continue attempting function calls until MaximumIterationsPerRequest is reached.

Changing the value of this property while the client is in use may result in inconsistencies as to whether errors are retried during an in-flight request.

The default value is false.

Applies to