Method OnHandoffAsync
OnHandoffAsync(AgentHandoff, AgentRunState, CancellationToken)
Called once when a run hands off, before its result is returned.
Task OnHandoffAsync(AgentHandoff handoff, AgentRunState state, CancellationToken cancellationToken)
Parameters
handoffAgentHandoffThe hand-off context.
stateAgentRunStateThe run's state at the hand-off.
cancellationTokenCancellationTokenA token to cancel the call.
Returns
- Task
A task that completes when the hand-off is taken.