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

Function transcode

packages/effect/src/unstable/ai/internal/mcpProtocol.ts:117–127  ·  view source on GitHub ↗
(
  from: From,
  to: To,
  input: Schema.Schema.Type<From>
)

Source from the content-addressed store, hash-verified

115
116/** @internal */
117export const transcode = <
118 From extends Schema.Constraint,
119 To extends Schema.Constraint
120>(
121 from: From,
122 to: To,
123 input: Schema.Schema.Type<From>
124) =>
125 Schema.encodeEffect(from)(input).pipe(
126 Effect.flatMap(Schema.decodeUnknownEffect(to))
127 )
128
129/** @internal */
130export const makeNotificationProjector = Effect.fn(function*(

Callers

nothing calls this directly

Calls 1

pipeMethod · 0.65

Tested by

no test coverage detected