Node.js SDK (@thesysai/genui-sdk/server)
This SDK provides a function to create a Response Builder object that manages the creation and streaming of the C1 Response.
Main Function
Response Builder Methods
The object returned bymakeC1Response() has the following methods and properties:
Pipes the raw string response from a C1 API call (e.g., from the Generative UI or Artifacts endpoint) into the response stream.
Adds a custom markdown response to the stream. This will be wrapped in
<custom_markdown> tags.Signals that the stream is complete and closes it. This should be called in the
onEnd callback of your stream processing.Python SDK (thesys_genui_sdk)
The thesys_genui_sdk package provides the C1Response class, which acts as the Response Builder.
Please refer to the Python SDK Reference for more details.