MCPcopy Create free account
hub / github.com/TanStack/ai / getMessages

Method getMessages

packages/ai/src/activities/chat/index.ts:731–733  ·  view source on GitHub ↗

Get the final messages array after the chat loop completes

()

Source from the content-addressed store, hash-verified

729
730 /** Get the final messages array after the chat loop completes */
731 getMessages(): Array<ModelMessage> {
732 return this.messages
733 }
734
735 /** Returns the structured-output result if finalization ran successfully. */
736 getStructuredOutputResult(): { data: unknown; rawText: string } | null {

Calls

no outgoing calls

Tested by

no test coverage detected