Share via


TerminationStrategy.ShouldAgentTerminateAsync Method

Definition

Called to evaluate termination once Agents is evaluated.

protected abstract System.Threading.Tasks.Task<bool> ShouldAgentTerminateAsync (Microsoft.SemanticKernel.Agents.Agent agent, System.Collections.Generic.IReadOnlyList<Microsoft.SemanticKernel.ChatMessageContent> history, System.Threading.CancellationToken cancellationToken);
abstract member ShouldAgentTerminateAsync : Microsoft.SemanticKernel.Agents.Agent * System.Collections.Generic.IReadOnlyList<Microsoft.SemanticKernel.ChatMessageContent> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Protected MustOverride Function ShouldAgentTerminateAsync (agent As Agent, history As IReadOnlyList(Of ChatMessageContent), cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

agent
Agent
cancellationToken
CancellationToken

Returns

Applies to