C1Component is a React component that allows you to embed Generative UI into your applications.
It renders an individual response from the C1 API and can be used in a variety of ways to embed
Generative UI into your applications.
Props
A function that enables
C1Component to update the c1Response state.The callback triggered when the user performs an action such as clicking on a button or submitting a form.For example, when the user submits a form by clicking on “Submit” button on the generated UI, “Submit” may be the
humanFriendlyMessage and the form data may be the llmFriendlyMessage.
Thus, you would likely want to use the llmFriendlyMessage in your API call to the backend so that the LLM can use the form data to generate a response.