Skip to content

AIDK API Reference / aidk-server / createInputTransformer

Function: createInputTransformer() ​

ts
function createInputTransformer<TBody>(transform: (body: TBody, context: RequestContext) => EngineInput): InputTransformer<TBody>;

Defined in: packages/server/src/execution-context.ts:196

Create an input transformer with custom transformation logic

Type Parameters ​

Type Parameter
TBody

Parameters ​

ParameterType
transform(body: TBody, context: RequestContext) => EngineInput

Returns ​

InputTransformer<TBody>

Released under the MIT License.