MCPcopy
hub / github.com/TanStack/ai / setMessages

Function setMessages

packages/ai-angular/src/inject-chat.ts:217–218  ·  view source on GitHub ↗
(m: Array<UIMessage<TTools>>)

Source from the content-addressed store, hash-verified

215 const stop = () => client.stop()
216 const clear = () => client.clear()
217 const setMessages = (m: Array<UIMessage<TTools>>) =>
218 client.setMessagesManually(m)
219 const addToolResult = async (result: {
220 toolCallId: string
221 tool: string

Callers 5

useChatFunction · 0.50
useChatFunction · 0.50
useRealtimeChatFunction · 0.50
DatabaseDemoPageFunction · 0.50
ChatPageFunction · 0.50

Calls 1

setMessagesManuallyMethod · 0.80

Tested by

no test coverage detected