You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportconstdescription=`if user asks currency exchange rate related questions, you should call this function. But if the source currency is other than USD (US Dollar), you should ignore calling tools.`
10
10
11
-
// Tag specifies the data tag that this serverless function
12
-
// subscribes to, which is essential for data reception. When data with this
13
-
// tag is received, the Handler function will be triggered.
14
-
exportconsttag=0x33
15
-
16
11
// Argument defines the arguments for the LLM Function Calling. These
17
12
// arguments are combined to form a prompt automatically.
Copy file name to clipboardexpand all lines: node-tool-get-ip-and-latency/app.ts
-3
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,6 @@ import { promisify } from 'util';
5
5
// Description outlines the functionality for the LLM Function Calling feature
6
6
exportconstdescription=`if user asks ip or network latency of a domain, you should return the result of the giving domain. try your best to dissect user expressions to infer the right domain names`;
7
7
8
-
// Tag specifies the data tag that this serverless function subscribes to
9
-
exportconsttag=0x64;
10
-
11
8
// Parameter defines the arguments for the LLM Function Calling
exportconstdescription=`You are an expert web research AI, designed to generate a response based on provided search results. Keep in mind today is ${newDate().toISOString()}.`;
12
5
@@ -119,7 +112,7 @@ function extractHtml(html: string, defaultContent: string) {
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
19
+
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
20
+
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
21
+
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
22
+
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
23
+
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
24
+
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
25
+
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
26
+
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
27
+
28
+
/* Modules */
29
+
"module": "commonjs", /* Specify what module code is generated. */
30
+
// "rootDir": "./", /* Specify the root folder within your source files. */
31
+
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
32
+
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
33
+
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
34
+
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
35
+
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
36
+
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
39
+
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
40
+
// "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */
41
+
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
42
+
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
43
+
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
44
+
// "noUncheckedSideEffectImports": true, /* Check side effect imports. */
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
53
+
54
+
/* Emit */
55
+
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
56
+
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
57
+
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
60
+
// "noEmit": true, /* Disable emitting files from a compilation. */
61
+
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
62
+
// "outDir": "./", /* Specify an output folder for all emitted files. */
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
76
+
77
+
/* Interop Constraints */
78
+
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
79
+
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
80
+
// "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can trivially generate declaration files. */
81
+
// "erasableSyntaxOnly": true, /* Do not allow runtime constructs that are not part of ECMAScript. */
82
+
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
83
+
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
84
+
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
85
+
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
86
+
87
+
/* Type Checking */
88
+
"strict": true, /* Enable all strict type-checking options. */
89
+
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
90
+
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
91
+
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
92
+
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
93
+
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
94
+
// "strictBuiltinIteratorReturn": true, /* Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'. */
95
+
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
96
+
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
0 commit comments