MCPcopy Index your code
hub / github.com/TanStack/ai / getMessages

Method getMessages

packages/ai-client/src/chat-client.ts:1375–1377  ·  view source on GitHub ↗

* Get current messages

()

Source from the content-addressed store, hash-verified

1373 * Get current messages
1374 */
1375 getMessages(): Array<UIMessage<TTools>> {
1376 return this.processor.getMessages() as Array<UIMessage<TTools>>
1377 }
1378
1379 /**
1380 * Get loading state

Callers 15

injectChatFunction · 0.95
useChatFunction · 0.95
createChatFunction · 0.95
useChatFunction · 0.45
constructorMethod · 0.45
mountDevtoolsMethod · 0.45
getDevtoolsSnapshotMethod · 0.45
appendMethod · 0.45
streamResponseMethod · 0.45
reloadMethod · 0.45

Calls

no outgoing calls

Tested by 2

findToolCallPartFunction · 0.36
findToolResultPartFunction · 0.36