Skip to content
Snippets Groups Projects
Commit 7b116ce7 authored by Marcus Schiesser's avatar Marcus Schiesser
Browse files

fix: allow subsequent tool calls

parent d1232fb1
No related branches found
No related tags found
No related merge requests found
......@@ -107,10 +107,13 @@ export class InterpreterTool implements BaseTool<InterpreterParameter> {
async call(input: InterpreterParameter): Promise<InterpreterToolOutput> {
const result = await this.codeInterpret(input.code);
await this.codeInterpreter?.close();
return result;
}
async close() {
await this.codeInterpreter?.close();
}
private async getExtraResult(
res?: Result,
): Promise<InterpreterExtraResult[]> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment