ToolSpec constructor
ToolSpec({})
A tool called name. Its schemas and meta are copied unmodifiable;
without inputSchema it takes an object of any shape, and without
hints it is ToolHints.writes.
Implementation
ToolSpec({
required this.name,
this.description,
Map<String, Object?> inputSchema = const <String, Object?>{
'type': 'object',
},
Map<String, Object?>? outputSchema,
this.hints = ToolHints.writes,
Map<String, Object?> meta = const <String, Object?>{},
}) : inputSchema = Map<String, Object?>.unmodifiable(inputSchema),
outputSchema = outputSchema == null
? null
: Map<String, Object?>.unmodifiable(outputSchema),
meta = Map<String, Object?>.unmodifiable(meta);