FormatJsonSchemaConfig - TypeScript SDK

FormatJsonSchemaConfig type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

JSON schema constrained response format

Example Usage

1import { FormatJsonSchemaConfig } from "@openrouter/sdk/models";
2
3let value: FormatJsonSchemaConfig = {
4 name: "<value>",
5 schema: {
6 "key": "<value>",
7 },
8 type: "json_schema",
9};

Fields

FieldTypeRequiredDescription
descriptionstringN/A
namestring✔️N/A
schemaRecord<string, *any*>✔️N/A
strictbooleanN/A
type”json_schema”✔️N/A