AgentClientToolCallRequested.fromJson constructor
AgentClientToolCallRequested.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AgentClientToolCallRequested.fromJson(Map<String, dynamic> json) =>
AgentClientToolCallRequested(
threadId: _requiredString(json, 'thread_id'),
messageId: _stringOrNull(json['message_id']),
senderName: _stringOrNull(json['sender_name']),
provider: _stringOrNull(json['provider']),
model: _stringOrNull(json['model']),
turnId: _requiredString(json, 'turn_id'),
requestId: _requiredString(json, 'request_id'),
targetParticipantId: _stringOrNull(json['target_participant_id']),
toolkit: _requiredString(json, 'toolkit'),
tool: _requiredString(json, 'tool'),
arguments: _dynamicMapOrNull(json['arguments']),
);