'use client' import { useState } from 'react' import { type SchemaRoot, Type } from '../components/workflow/nodes/llm/types' import JsonSchemaConfigModal from '../components/workflow/nodes/llm/components/json-schema-config-modal' export default function Page() { const [show, setShow] = useState(false) const [schema, setSchema] = useState({ type: Type.object, properties: { userId: { type: Type.number, description: 'The user ID', }, id: { type: Type.number, }, title: { type: Type.string, }, locations: { type: Type.array, items: { type: Type.object, properties: { x: { type: Type.object, properties: { x1: { type: Type.array, items: { type: Type.number, }, }, }, required: [ 'x1', ], }, y: { type: Type.number, }, }, required: [ 'x', 'y', ], }, }, completed: { type: Type.boolean, }, }, required: [ 'userId', 'id', 'title', ], additionalProperties: false, }) return
{show && ( { setSchema(schema) }} onClose={() => setShow(false)} /> )}
      {JSON.stringify(schema, null, 2)}
    
}