outputSchema property

Map<String, Object?>? outputSchema
final

The JSON Schema of the structuredContent its answers carry, or null for a tool that answers in words and pictures only.

Required wherever an answer is structured: a host validates the structured half against it, and an agent reads it to know the fields it may act on before it calls.

Implementation

final Map<String, Object?>? outputSchema;