Share via


FunctionInvokingChatClient.MaximumIterationsPerRequest Property

Definition

Gets or sets the maximum number of iterations per request.

public:
 property int MaximumIterationsPerRequest { int get(); void set(int value); };
public int MaximumIterationsPerRequest { get; set; }
member this.MaximumIterationsPerRequest : int with get, set
Public Property MaximumIterationsPerRequest As Integer

Property Value

The maximum number of iterations per request. The default value is 10.

Remarks

Each request to this FunctionInvokingChatClient might end up making multiple requests to the inner client. Each time the inner client responds with a function call request, this client might perform that invocation and send the results back to the inner client in a new request. This property limits the number of times such a roundtrip is performed. The value must be at least one, as it includes the initial request.

Changing the value of this property while the client is in use might result in inconsistencies as to how many iterations are allowed for an in-flight request.

Applies to