chore: generate
This commit is contained in:
parent
81d3ac3bf0
commit
8daeacc989
1 changed files with 4 additions and 1 deletions
|
|
@ -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++) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue