Skip to content

Commit

Permalink
feat(agent): use shallow copy for tool input
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas2D committed Nov 4, 2024
1 parent d218f8b commit eb6c277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agents/bee/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ export class BeeAgentRunner extends Serializable {
},
meta,
});
const toolOutput: ToolOutput = await tool.run(iteration.tool_input, options);
const toolOutput: ToolOutput = await tool.run(shallowCopy(iteration.tool_input), options);
await emitter.emit("toolSuccess", {
data: {
tool,
Expand Down

0 comments on commit eb6c277

Please sign in to comment.