ListToolsResult constructor
ListToolsResult({
- ResultMetaObject? meta,
- String? nextCursor,
- required List<
Tool> tools, - ListToolsResultCacheScope? cacheScope,
- String? resultType,
- int? ttlMs,
- Map<
String, Object?> ? extra,
Implementation
ListToolsResult({
ResultMetaObject? meta,
String? nextCursor,
required List<Tool> tools,
ListToolsResultCacheScope? cacheScope,
String? resultType,
int? ttlMs,
Map<String, Object?>? extra,
}) : super.build({
...?extra,
if (meta != null) '_meta': $encode(meta),
if (nextCursor != null) 'nextCursor': $encode(nextCursor),
'tools': $encode(tools),
if (cacheScope != null) 'cacheScope': $encode(cacheScope),
if (resultType != null) 'resultType': $encode(resultType),
if (ttlMs != null) 'ttlMs': $encode(ttlMs),
});