HandoffStartExecutor constructor
HandoffStartExecutor({
- required AIAgent initialAgent,
- required Map<
String, List< targets,HandoffTarget> > - String? handoffInstructions,
- bool emitAgentResponseEvents = false,
- bool? emitAgentResponseUpdateEvents,
- HandoffToolCallFilteringBehavior toolCallFilteringBehavior = HandoffToolCallFilteringBehavior.handoffOnly,
- bool returnToPrevious = false,
Creates a HandoffStartExecutor.
Implementation
HandoffStartExecutor({
required this.initialAgent,
required Map<String, List<HandoffTarget>> targets,
this.handoffInstructions,
this.emitAgentResponseEvents = false,
this.emitAgentResponseUpdateEvents,
this.toolCallFilteringBehavior =
HandoffToolCallFilteringBehavior.handoffOnly,
this.returnToPrevious = false,
}) : targets = {
for (final entry in targets.entries)
entry.key: List<HandoffTarget>.unmodifiable(entry.value),
},
super(executorId);