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

Function fromPrompt

packages/effect/src/unstable/ai/Chat.ts:594–595  ·  view source on GitHub ↗
(prompt: Prompt.RawInput)

Source from the content-addressed store, hash-verified

592 * @since 4.0.0
593 */
594export const fromPrompt = (prompt: Prompt.RawInput) =>
595 Effect.sync(() => makeUnsafe(Ref.makeUnsafe(Prompt.make(prompt))))
596
597/**
598 * Creates a Chat service from previously exported chat data.

Callers

nothing calls this directly

Calls 3

makeMethod · 0.65
makeUnsafeFunction · 0.50
syncMethod · 0.45

Tested by

no test coverage detected