Skip to content

Bedrock Runtime  >  Structures  >  JsonSchemaDefinition

JsonSchemaDefinition

Structure Class

JsonSchemaDefinition dataclass

JSON schema structured output format options.

Attributes

description class-attribute instance-attribute
description: str | None = None

A description of the JSON schema.

name class-attribute instance-attribute
name: str | None = None

The name of the JSON schema.

schema instance-attribute
schema: str

The JSON schema to constrain the model's output. For more information, see JSON Schema Reference.