Merge branch 'dev' into nxl/improve-compaction-strategy

This commit is contained in:
Brendan Allan 2026-04-17 11:50:17 +08:00
commit a4882290aa
No known key found for this signature in database
GPG key ID: 41E835AEA046A32E
234 changed files with 21326 additions and 20415 deletions

View file

@ -157,16 +157,6 @@ describe("structured-output.AssistantMessage", () => {
})
describe("structured-output.createStructuredOutputTool", () => {
test("creates tool with correct id", () => {
const tool = SessionPrompt.createStructuredOutputTool({
schema: { type: "object", properties: { name: { type: "string" } } },
onSuccess: () => {},
})
// AI SDK tool type doesn't expose id, but we set it internally
expect((tool as any).id).toBe("StructuredOutput")
})
test("creates tool with description", () => {
const tool = SessionPrompt.createStructuredOutputTool({
schema: { type: "object" },