Share via


FunctionInvocationContext.Terminate Property

Definition

Gets or sets a value indicating whether to terminate the request.

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

Property Value

Remarks

In response to a function call request, the function might be invoked, its result added to the chat contents, and a new request issued to the wrapped client. If this property is set to true, that subsequent request will not be issued and instead the loop immediately terminated rather than continuing until there are no more function call requests in responses.

If multiple function call requests are issued as part of a single iteration (a single response from the inner IChatClient), setting Terminate to true may also prevent subsequent requests within that same iteration from being processed.

Applies to