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

Function encodePrompt

packages/ai/ai/src/Prompt.ts:1383–1387  ·  view source on GitHub ↗
(input: Prompt, ast: AST.AST)

Source from the content-addressed store, hash-verified

1381 })
1382
1383const encodePrompt = (input: Prompt, ast: AST.AST) =>
1384 ParseResult.mapBoth(encodeMessages(input.content), {
1385 onFailure: () => new ParseResult.Type(ast, input, `Failed to encode Prompt`),
1386 onSuccess: (messages) => ({ content: messages })
1387 })
1388
1389/**
1390 * Schema for parsing a Prompt from JSON strings.

Callers 1

Prompt.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…