chore: generate
This commit is contained in:
@@ -34,7 +34,10 @@ describe("Tool.define", () => {
|
|||||||
test("object-defined tool does not accumulate wrapper layers across init() calls", async () => {
|
test("object-defined tool does not accumulate wrapper layers across init() calls", async () => {
|
||||||
let executeCalls = 0
|
let executeCalls = 0
|
||||||
|
|
||||||
const tool = Tool.define("test-tool", makeTool("test", () => executeCalls++))
|
const tool = Tool.define(
|
||||||
|
"test-tool",
|
||||||
|
makeTool("test", () => executeCalls++),
|
||||||
|
)
|
||||||
|
|
||||||
// Call init() many times to simulate many agentic steps
|
// Call init() many times to simulate many agentic steps
|
||||||
for (let i = 0; i < 100; i++) {
|
for (let i = 0; i < 100; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user