MCPcopy Create free account
hub / github.com/akdeb/ElatoAI / createServerMessage

Function createServerMessage

server/cloudflare/models/session.ts:19–25  ·  view source on GitHub ↗
(msg: string, extra: Record<string, unknown> = {})

Source from the content-addressed store, hash-verified

17}
18
19function createServerMessage(msg: string, extra: Record<string, unknown> = {}) {
20 return JSON.stringify({
21 type: "server",
22 msg,
23 ...extra,
24 });
25}
26
27function errorMessage(error: unknown): string {
28 if (error instanceof Error) {

Callers 5

failStartupMethod · 0.85
streamAssistantReplyMethod · 0.85
handleTranscriptTurnMethod · 0.85
fetchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected