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 ​
| Parameter | Type |
|---|---|
transform | (body: TBody, context: RequestContext) => EngineInput |
Returns ​
InputTransformer<TBody>