diff options
| author | sigoden <sigoden@gmail.com> | 2024-11-30 17:14:21 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-30 17:14:21 +0800 |
| commit | d2a537c3743963bfb6add44731dd3f3f6c785a2e (patch) | |
| tree | e499f1217135741622995ba253ad34ea9164f358 /tools/execute_js_code.js | |
| parent | c4ba6ff379bdce768f6053671309e2e2f4a6fc79 (diff) | |
| download | llm-functions-docker-d2a537c3743963bfb6add44731dd3f3f6c785a2e.tar.gz | |
refactor: several improvements (#132)
- js export expression
- check args regarding run-agent/run-tool
Diffstat (limited to 'tools/execute_js_code.js')
| -rw-r--r-- | tools/execute_js_code.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/execute_js_code.js b/tools/execute_js_code.js index 0b7557b..852b33c 100644 --- a/tools/execute_js_code.js +++ b/tools/execute_js_code.js @@ -4,7 +4,7 @@ * @property {string} code - Javascript code to execute, such as `console.log("hello world")` * @param {Args} args */ -exports.run = function run({ code }) { +exports.run = function ({ code }) { let output = ""; const oldStdoutWrite = process.stdout.write.bind(process.stdout); process.stdout.write = (chunk, _encoding, callback) => { |
