MCPcopy Index your code
hub / github.com/Effect-TS/effect / PromptFromSelf

Class PromptFromSelf

packages/ai/ai/src/Prompt.ts:1345–1356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1343 * @category Schemas
1344 */
1345export class PromptFromSelf extends Schema.declare(
1346 (u) => isPrompt(u),
1347 {
1348 typeConstructor: { _tag: "effect/ai/Prompt" },
1349 identifier: "PromptFromSelf",
1350 description: "a Prompt instance",
1351 arbitrary: (): Arbitrary.LazyArbitrary<Prompt> => (fc) =>
1352 fc.array(
1353 Arbitrary.makeLazy(Message)(fc)
1354 ).map(makePrompt)
1355 }
1356) {}
1357
1358/**
1359 * Schema for validation and encoding of prompts.

Callers

nothing calls this directly

Calls 3

arrayMethod · 0.80
isPromptFunction · 0.70
mapMethod · 0.65

Tested by

no test coverage detected