Skip to content

Function: LocalChat()

ts
function LocalChat(props: UiLocalChatProps): Block;

Defined in: src/renderer/blocks/index.ts:2740

Experimental

LocalChat — a working chat surface that runs against Chrome's built-in LanguageModel (Gemini Nano), entirely locally in the browser. When a user turn is appended to the bound state array, the block calls LanguageModel.promptStreaming() and streams the assistant response back into the same array. Pair with a PromptInput block bound to the same name to drive the conversation.

Parameters

ParameterType
propsUiLocalChatProps

Returns

Block

Matterway Assistant SDK Documentation