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

Function fromExport

packages/ai/ai/src/Chat.ts:538–539  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

536 * @category Constructors
537 */
538export const fromExport = (data: unknown): Effect.Effect<Service, ParseError, LanguageModel.LanguageModel> =>
539 Effect.flatMap(decodeUnknown(data), fromPrompt)
540
541const decodeHistoryJson = Schema.decodeUnknown(Prompt.FromJson)
542

Callers

nothing calls this directly

Calls 1

decodeUnknownFunction · 0.50

Tested by

no test coverage detected