Share via


HandoffsWorkflowBuilder Class

Definition

Provides a builder for specifying the handoff relationships between agents and building the resulting workflow.

public sealed class HandoffsWorkflowBuilder
type HandoffsWorkflowBuilder = class
Public NotInheritable Class HandoffsWorkflowBuilder
Inheritance
HandoffsWorkflowBuilder

Properties

Name Description
HandoffInstructions

Gets or sets additional instructions to provide to an agent that has handoffs about how and when to perform them.

Methods

Name Description
Build()

Builds a Workflow composed of agents that operate via handoffs, with the next agent to process messages selected by the current agent.

WithHandoff(AIAgent, AIAgent, String)

Adds a handoff relationship from a source agent to a target agent with a custom handoff reason.

WithHandoffInstructions(String)

Sets additional instructions to provide to an agent that has handoffs about how and when to perform them.

WithHandoffs(AIAgent, IEnumerable<AIAgent>)

Adds handoff relationships from a source agent to one or more target agents.

WithHandoffs(IEnumerable<AIAgent>, AIAgent, String)

Adds handoff relationships from one or more sources agent to a target agent.

WithToolCallFilteringBehavior(HandoffToolCallFilteringBehavior)

Sets the behavior for filtering FunctionCallContent and Tool contents from ChatMessages flowing through the handoff workflow. Defaults to HandoffOnly.

Applies to