Functions
generateEventComponent
generateEventComponent(
eventType
,llm
):Promise
<string
>
Defined in: packages/server/src/utils/gen-ui.ts:521
Generates a React UI component for displaying event data of a given type.
Parameters
eventType
A Zod schema representing the event type.
object
| ZodType
<any
, ZodTypeDef
, any
>
llm
LLM
The LLM instance to use for the workflow. We recommend using gpt-4.1, sonnet-3.7, or gemini-2.5-pro for better results
Returns
Promise
<string
>
The generated React component code as a string.