HandoffWorkflowBuilderCore<TBuilder>.WithHandoffInstructions 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.
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
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.