Type Alias CodeExecutorFunction
CodeExecutorFunction: (
code: string,
timeout?: number,
) => Promise<ExecutionResult>
Type Declaration
-
- (code: string, timeout?: number): Promise<ExecutionResult>
-
Parameters
- code: string
Optionaltimeout: number
Returns Promise<ExecutionResult>
Custom function type for code execution in code mode. Allows providing a custom executor implementation.