MCPcopy Create free account
hub / github.com/Effect-TS/effect / reasonMessage

Function reasonMessage

packages/effect/src/chat/ChatError.ts:129–130  ·  view source on GitHub ↗
(reason: { readonly _tag: string; readonly detail?: string | undefined })

Source from the content-addressed store, hash-verified

127}
128
129const reasonMessage = (reason: { readonly _tag: string; readonly detail?: string | undefined }): string =>
130 reason.detail === undefined ? reason._tag : `${reason._tag}: ${reason.detail}`
131
132/**
133 * Reason for a `ChatError`: the platform rate limited the request.

Callers 12

messageMethod · 0.70
messageMethod · 0.70
messageMethod · 0.70
messageMethod · 0.70
messageMethod · 0.70
messageMethod · 0.70
messageMethod · 0.70
messageMethod · 0.70
messageMethod · 0.70
messageMethod · 0.70
messageMethod · 0.70
messageMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected