<script lang="ts" setup>
import { toTypedSchema } from '@vee-validate/zod'
import { useForm } from 'vee-validate'
import { z } from 'zod'

const schema = z.object({
  foo: z.string().describe('测试Label').optional(),
  bar: z.number(),
})

const form = useForm({
  validationSchema: toTypedSchema(schema),
})
</script>

<template>
  <div>
    <AiConversation
      :form
      :form-schema="schema"
    />
  </div>
</template>

<style scoped></style>
