fix(tools): keep tool errors concise

This commit is contained in:
Peter Steinberger
2026-01-07 19:04:04 +00:00
parent 579828b2d5
commit 43c7f5036a
4 changed files with 22 additions and 8 deletions

View File

@@ -22,6 +22,7 @@ describe("pi tool definition adapter", () => {
status: "error",
tool: "boom",
});
expect(JSON.stringify(result.details)).toContain("nope");
expect(result.details).toMatchObject({ error: "nope" });
expect(JSON.stringify(result.details)).not.toContain("\n at ");
});
});