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

Function tryCodecTransform

packages/ai/openai-compat/src/OpenAiLanguageModel.ts:1418–1422  ·  view source on GitHub ↗
(schema: S, method: string)

Source from the content-addressed store, hash-verified

1416 })
1417
1418const tryCodecTransform = <S extends Schema.Constraint>(schema: S, method: string) =>
1419 Effect.try({
1420 try: () => toCodecOpenAI(schema),
1421 catch: (error) => unsupportedSchemaError(error, method)
1422 })
1423
1424const tryJsonSchema = <S extends Schema.Constraint>(schema: S, method: string) =>
1425 Effect.try({

Callers 1

Calls 2

toCodecOpenAIFunction · 0.90
unsupportedSchemaErrorFunction · 0.70

Tested by

no test coverage detected