mcp-use TypeScript API
    Preparing search index...

    Type Alias CodeExecutorFunction

    CodeExecutorFunction: (
        code: string,
        timeout?: number,
    ) => Promise<ExecutionResult>

    Custom function type for code execution in code mode. Allows providing a custom executor implementation.

    Type Declaration

      • (code: string, timeout?: number): Promise<ExecutionResult>
      • Parameters

        • code: string
        • Optionaltimeout: number

        Returns Promise<ExecutionResult>