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

Function createConversation

web/js/api.js:35–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35export async function createConversation() {
36 const res = await fetch(state.API_BASE + "/api/conversations", {
37 method: "POST",
38 headers: { "Content-Type": "application/json" },
39 });
40 if (!res.ok) {
41 throw new Error("Create Conversation Failed");
42 }
43 return await res.json();
44}
45
46export async function getConversationMessages(channelId, limit = 200) {
47 const params = new URLSearchParams({ limit: String(limit) });

Callers 1

ensureConversationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected