When component signatures are generated, descriptions included in the zod schema are not included in the prompt.
For example:
defineComponent({
name: 'SpecialCard',
description: 'A special card which renders plenty of information.',
props: z.object({ myProp: z.string().describe('Use this property for...')}),
component: ({ props }) => {},
})
This component generates:
SpecialCard(myProp: string) – A special card which renders plenty of information.
The "Use this property for..." is dropped.
Alternatively, we could include the details of the properties in the component description.
When component signatures are generated, descriptions included in the zod schema are not included in the prompt.
For example:
This component generates:
The "Use this property for..." is dropped.
Alternatively, we could include the details of the properties in the component description.