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

Function tryCodecTransform

packages/ai/openai/src/OpenAiLanguageModel.ts:2927–2931  ·  view source on GitHub ↗
(schema: S, method: string)

Source from the content-addressed store, hash-verified

2925 })
2926
2927const tryCodecTransform = <S extends Schema.Constraint>(schema: S, method: string) =>
2928 Effect.try({
2929 try: () => toCodecOpenAI(schema),
2930 catch: (error) => unsupportedSchemaError(error, method)
2931 })
2932
2933const tryJsonSchema = <S extends Schema.Constraint>(schema: S, method: string) =>
2934 Effect.try({

Callers 1

Calls 2

toCodecOpenAIFunction · 0.90
unsupportedSchemaErrorFunction · 0.70

Tested by

no test coverage detected