Compartilhar 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

false if the underlying IChatClient will be instructed to give a response without invoking any further functions if a function call fails with an exception. true if the underlying IChatClient is allowed to continue attempting function calls until MaximumIterationsPerRequest is reached. The default value is false.

Remarks

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

Applies to