Files
twenty/packages/twenty-sdk/src/sdk/logic-functions/logic-function-config.ts
T
martmull da064d5e88 Support define is tool logic function (#17926)
- supports isTool and timeout settings in defineLogicFunction in apps
and in setting tabs definition
- compute for all toolInputSchema for logic funciton, in settings and in
code steps

<img width="991" height="802" alt="image"
src="https://github.com/user-attachments/assets/05dc1221-cac9-45a3-87b0-3b13161446fd"
/>
2026-02-16 10:43:29 +01:00

17 lines
476 B
TypeScript

import { type LogicFunctionManifest } from 'twenty-shared/application';
import { type InputJsonSchema } from 'twenty-shared/logic-function';
export type LogicFunctionHandler = (...args: any[]) => any | Promise<any>;
export type LogicFunctionConfig = Omit<
LogicFunctionManifest,
| 'sourceHandlerPath'
| 'builtHandlerPath'
| 'builtHandlerChecksum'
| 'handlerName'
| 'toolInputSchema'
> & {
handler: LogicFunctionHandler;
toolInputSchema?: InputJsonSchema;
};