Creates the JSON Schema that a UI kit asks the model to follow, without the component implementations.
Use it when an agent that Hashbrown does not run produces the UI: pass the
result to the model as a structured output (response format) schema, or
include it in the agent's instructions. The browser then parses the
streamed message with useJsonParser(content, kit.schema) and renders it
with kit.render(value).
The result is plain JSON, identical to the response schema useUiChat
sends for a kit built from the same definitions, so it can be written to a
file for agents in other languages.
API
export declare function createUiJsonSchema(
options: UiJsonSchemaOptions ,
): Record <string, unknown>;createUiJsonSchema
Record<string, unknown>The component definitions.
@returnsRecord<string, unknown>