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

Function streamText

packages/effect/src/unstable/ai/LanguageModel.ts:1826–1834  ·  view source on GitHub ↗
(options: GenerateTextOptions<any>)

Source from the content-addressed store, hash-verified

1824 ExtractServices<Options> | LanguageModel
1825 >
1826} = (options: GenerateTextOptions<any>): Stream.Stream<
1827 Response.StreamPart<{}>,
1828 AiError.AiError,
1829 LanguageModel
1830> =>
1831 Stream.unwrap(Effect.map(
1832 Effect.service(LanguageModel),
1833 (model) => model.streamText(options as any)
1834 )) as any
1835
1836// =============================================================================
1837// Tool Approval Helpers

Callers

nothing calls this directly

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected