JsonSchema
Definition of a data type.
These types can be objects, but also primitives and arrays. Represents a select subset of an JsonSchema object.
Note: While optional, including a description field in your JsonSchema is strongly encouraged. The more information the model has about what it's expected to generate, the better the results.
Note for Structured Output:
For on-device and hybrid inference (
ONLY_ON_DEVICE,PREFER_ON_DEVICE, andPREFER_IN_CLOUD): Requires using the@Generableannotation on adata class. Manual schemas are not supported.For cloud-only inference (
ONLY_IN_CLOUD): Supports both@Generableannotations (recommended) and manual schemas.