toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() => {
      'type': 'tool_call',
      'tool_call_id': toolCallId,
      'tool_name': toolName,
      'input': input,
      if (thoughtSignature != null) 'thought_signature': thoughtSignature,
      if (providerOptions != null) 'provider_options': providerOptions,
    };