our friendly logo that looks like a hashbrown character from an animated tv showhashbrown

@hashbrownai/reactComponentPropSchema

When exposing a component to the chat, you must provide a schema for the props of that component. The ComponentPropSchema type defines the schema for those component props.

type ComponentPropSchema<T> = ɵtypes.Prettify<T extends ComponentType<infer P> ? {
    [K in keyof P]?: s.Schema<P[K]>;
} : never>;
@typeT

Examples

// Example usage in a tool definition.
exposeComponent(CardComponent, {
  // ...
  props: { // The ComponentPropSchema
    title: s.string('The title of the card'),
    description: s.streaming.string('The description of the card'),
  },
});

LiveLoveApp provides secure, compliant, and reliable long-term support to enterprises. We are a group of engineers who are passionate about open source.

Enterprise Support

AI Engineering Sprint

Get your team up-to-speed on AI engineering with a one week AI engineering sprint. Includes a workshop on AI engineering with hashbrown and a few days with the hashbrown developer team to bring your AI ideas to life.

Long Term Support

Keep your hashbrown deployments running at peak performance with our Long Term Support. Includes an ongoing support retainer for direct access to the hashbrown developer team, SLA-backed issue resolution, and guided upgrades.

Consulting

LiveLoveApp provides hands-on engagement with our AI engineers for architecture reviews, custom integrations, proof-of-concept builds, performance tuning, and expert guidance on best practices.