Share via


KernelFunctionTerminationStrategy.ShouldAgentTerminateAsync Method

Definition

Called to evaluate termination once Agents is evaluated.

protected override sealed System.Threading.Tasks.Task<bool> ShouldAgentTerminateAsync (Microsoft.SemanticKernel.Agents.Agent agent, System.Collections.Generic.IReadOnlyList<Microsoft.SemanticKernel.ChatMessageContent> history, System.Threading.CancellationToken cancellationToken = default);
override this.ShouldAgentTerminateAsync : Microsoft.SemanticKernel.Agents.Agent * System.Collections.Generic.IReadOnlyList<Microsoft.SemanticKernel.ChatMessageContent> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Protected Overrides NotOverridable Function ShouldAgentTerminateAsync (agent As Agent, history As IReadOnlyList(Of ChatMessageContent), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

agent
Agent
cancellationToken
CancellationToken

Returns

Applies to