MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / getConversationMessages

Function getConversationMessages

web/js/api.js:46–55  ·  view source on GitHub ↗
(channelId, limit = 200)

Source from the content-addressed store, hash-verified

44}
45
46export async function getConversationMessages(channelId, limit = 200) {
47 const params = new URLSearchParams({ limit: String(limit) });
48 const res = await fetch(
49 state.API_BASE + `/api/conversations/${encodeURIComponent(channelId)}/messages?${params.toString()}`,
50 );
51 if (!res.ok) {
52 throw new Error("Load Conversation Messages Failed");
53 }
54 return await res.json();
55}

Callers 1

loadConversationHistoryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected