AgentToolCallPart constructor
const
AgentToolCallPart({
- required String id,
- required String name,
- String? summary,
- String? description,
- String? detail,
- List<
AgentToolInput> input = const [], - AgentToolCallStatus status = AgentToolCallStatus.inputStreaming,
- String? output,
- Object? result,
- String? error,
- AgentApprovalDecision? decision,
- 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,
});