KernelFunctionTerminationStrategy.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 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
- history
- IReadOnlyList<ChatMessageContent>
- cancellationToken
- CancellationToken