strict property

bool strict
final

Whether to enable strict schema adherence when generating the tool call. If set to true, the model will follow the exact schema defined in the inputJsonSchema field.

This is only supported by some providers (e.g. OpenAI). Mind that when enabled, only a subset of JSON Schema may be supported. Check out the provider's tool calling documentation for more information.

Implementation

final bool strict;