toolSchemas property

Map<String, Map<String, dynamic>> get toolSchemas

The declaration each tool sent, keyed by tool name: the JSON Schema the native host would build the model's parameter constraint from. Assert against this to prove a nested object, a list or a string enum survived the declaration.

Implementation

Map<String, Map<String, dynamic>> get toolSchemas => {
  for (final tool in tools) tool.name: tool.resolvedParameterSchema,
};