toJson method

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

Implementation

@override
Map<String, dynamic> toJson() => {
      'type': 'file_search',
      'vector_store_ids': vectorStoreIds,
      if (filters != null) 'filters': filters!.map((e) => e.toJson()).toList(),
      if (rankingOptions != null) 'ranking_options': rankingOptions!.toJson(),
      if (maxNumResults != null) 'max_num_results': maxNumResults,
    };