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

Method getDevtoolsSnapshot

packages/ai-client/src/chat-client.ts:565–576  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

563 }
564
565 private getDevtoolsSnapshot(): AIDevtoolsChatSnapshot {
566 return {
567 messages: this.processor.getMessages(),
568 status: this.status,
569 isLoading: this.isLoading,
570 isSubscribed: this.isSubscribed,
571 connectionStatus: this.connectionStatus,
572 sessionGenerating: this.sessionGenerating,
573 activeRunIds: Array.from(this.activeRunIds),
574 ...(this.error ? { error: this.error.message } : {}),
575 }
576 }
577
578 private findMessageIdForToolCall(toolCallId: string): string | undefined {
579 const messages = this.processor.getMessages()

Callers 1

Calls 2

fromMethod · 0.80
getMessagesMethod · 0.45

Tested by

no test coverage detected