HandoffWorkflowBuilderCore<TBuilder>.WithHandoffInstructions Method

Definition

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

public TBuilder WithHandoffInstructions(string? instructions);
member this.WithHandoffInstructions : string -> 'Builder
Public Function WithHandoffInstructions (instructions As String) As TBuilder

Parameters

instructions
String

The instructions to provide, or null to restore the default instructions.

Returns

TBuilder

Remarks

In the vast majority of cases, the Microsoft.Agents.AI.Workflows.HandoffWorkflowBuilderCore`1.DefaultHandoffInstructions will be sufficient, and there will be no need to customize. If you do provide alternate instructions, remember to explain the mechanics of the handoff function tool call, using see FunctionPrefix constant.

Applies to