Skip to main content

GessoAI

Updating Gesso AI involes updating things in a few different places. There are 2 primary places plus 1 config area.

Overview​

Schemas​

Schemas describe the components to the LLM, enabling it to understand how and when to use a component and how to supply the necessary data for it.

Component Factory Plugins​

These are the plugins that take the schema and create the component. They are the glue between the schema and the component.

Locations​

AI Schemas

packages/providers/ai/schemas

ComponentFactoryPlugins

packages/ui/design-system/src/plugins/ComponentFactory

ResponseStructure

packages/ui/next/src/client/AIPage
packages/ui/next/src/client/ProductPage

Updating​

Adding a new component​

  • Add to generic ComponentFactoryPlugins
  • Add schema to AI Schemas
  • Add to the response structure of any relevent Pages/Components, such as AIPage

Updating an existing component​

  • Update AI Schemas
  • If needed, update ComponentFactorPlugin, although it by default passes all props along so they may not be needed