fix(core): bound tool structured output

This commit is contained in:
Kit Langton 2026-07-20 13:09:57 -04:00
commit 2deaa7786c
17 changed files with 440 additions and 165 deletions

View file

@ -96,7 +96,7 @@ describe("WebFetchTool registration", () => {
expect(yield* settleTool(registry, call({ url, format: "text", timeout: 4 }))).toEqual({
result: { type: "text", value: "hello" },
output: {
structured: { url, contentType: "text/plain", format: "text", output: "hello" },
structured: { url, contentType: "text/plain", format: "text", bytes: 5, truncated: false },
content: [{ type: "text", text: "hello" }],
},
})