MCPcopy
hub / github.com/CopilotKit/CopilotKit / getMessages

Method getMessages

packages/bot-ui/src/types.ts:88–88  ·  view source on GitHub ↗

Read the conversation's messages (capability-gated; returns `[]` when the adapter can't read history).

()

Source from the content-addressed store, hash-verified

86 }): Promise<{ ok: boolean; fileId?: string; error?: string }>;
87 /** Read the conversation's messages (capability-gated; returns `[]` when the adapter can't read history). */
88 getMessages(): Promise<ThreadMessage[]>;
89 /** Resolve a platform user by a free-form query (capability-gated; returns `undefined` when unsupported). */
90 lookupUser(query: string): Promise<PlatformUser | undefined>;
91 /** Pin suggested prompts (capability-gated; returns `{ ok: false }` on surfaces without support). */

Callers 12

getMessagesMethod · 0.65
adapter.test.tsFile · 0.65
getMessagesMethod · 0.65
adapter.test.tsFile · 0.65
adapter.test.tsFile · 0.65
fetchMessagesMethod · 0.65
filterNullsMethod · 0.65
runAgentMethod · 0.65
runMethod · 0.65
handlerFunction · 0.65

Implementers 1

Threadpackages/bot/src/thread.ts

Calls

no outgoing calls

Tested by

no test coverage detected