Skip to content

Commit 6f5eadd

Browse files
committed
Guard setModel mutation scope during execution
1 parent 27ae16c commit 6f5eadd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/agent/src/tool-manager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export class CuaToolManager {
4343
}
4444

4545
prepareModel(model: CuaModelRef | Model<Api>): CuaToolCatalog {
46+
this.assertMutationScope();
4647
return compileCuaToolCatalog({ model, requestedTools: this.current.requested, resources: this.resources });
4748
}
4849

0 commit comments

Comments
 (0)