AgentToolCallPart constructor

const AgentToolCallPart({
  1. required String id,
  2. required String name,
  3. String? summary,
  4. String? description,
  5. String? detail,
  6. List<AgentToolInput> input = const [],
  7. AgentToolCallStatus status = AgentToolCallStatus.inputStreaming,
  8. String? output,
  9. Object? result,
  10. String? error,
  11. AgentApprovalDecision? decision,
  12. Duration? duration,
})

Creates a tool call part.

Implementation

const AgentToolCallPart({
  required this.id,
  required this.name,
  this.summary,
  this.description,
  this.detail,
  this.input = const [],
  this.status = AgentToolCallStatus.inputStreaming,
  this.output,
  this.result,
  this.error,
  this.decision,
  this.duration,
});