TerminationStrategy.ShouldAgentTerminateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- history
- IReadOnlyList<ChatMessageContent>
- cancellationToken
- CancellationToken