Interface ChatResponsePartRenderer<T>
interface ChatResponsePartRenderer<T> { canHandle(response): number; render(response,
parentNode): ReactNode; } Type Parameters
- T extends ChatResponseContent
Methods
canHandle
- canHandle(response): number
Parameters
- response: ChatResponseContent
Returns number
render
- render(response, parentNode): ReactNode
Returns ReactNode