Jaa


FunctionInvokingChatClient.MaximumIterationsPerRequest Property

Definition

Gets or sets the maximum number of iterations per request.

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

Property Value

Remarks

Each request to this FunctionInvokingChatClient may end up making multiple requests to the inner client. Each time the inner client responds with a function call request, this client may 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. If null, there is no limit applied. If set, 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 may result in inconsistencies as to how many iterations are allowed for an in-flight request.

The default value is null.

Applies to