HandoffStartExecutor constructor

HandoffStartExecutor({
  1. required AIAgent initialAgent,
  2. required Map<String, List<HandoffTarget>> targets,
  3. String? handoffInstructions,
  4. bool emitAgentResponseEvents = false,
  5. bool? emitAgentResponseUpdateEvents,
  6. HandoffToolCallFilteringBehavior toolCallFilteringBehavior = HandoffToolCallFilteringBehavior.handoffOnly,
  7. bool returnToPrevious = false,
})

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);