MCPcopy
hub / github.com/coder/mux / createErrorEvent

Function createErrorEvent

src/node/services/utils/sendMessageError.ts:134–141  ·  view source on GitHub ↗
(workspaceId: string, payload: StreamErrorPayload)

Source from the content-addressed store, hash-verified

132}
133
134export const createErrorEvent = (workspaceId: string, payload: StreamErrorPayload): ErrorEvent => ({
135 type: "error",
136 workspaceId,
137 messageId: payload.messageId,
138 error: payload.error,
139 errorType: payload.errorType,
140 acpPromptId: payload.acpPromptId,
141});
142
143const API_KEY_ERROR_HINTS = ["api key", "api_key", "anthropic_api_key"];
144

Callers 6

persistStreamErrorMethod · 0.90
streamMessageMethod · 0.90
resolveAgentForStreamFunction · 0.90
dispatchEventMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected