Merge branch 'dev' into nxl/improve-compaction-strategy
This commit is contained in:
commit
a4882290aa
234 changed files with 21326 additions and 20415 deletions
|
|
@ -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" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue