Add timestamp to messages
This commit is contained in:
@@ -33,6 +33,7 @@ describe("Tool Call Without Result Tests", () => {
|
||||
context.messages.push({
|
||||
role: "user",
|
||||
content: "Please calculate 25 * 18 using the calculate tool.",
|
||||
timestamp: Date.now(),
|
||||
});
|
||||
|
||||
// Step 3: Get the assistant's response (should contain a tool call)
|
||||
@@ -54,6 +55,7 @@ describe("Tool Call Without Result Tests", () => {
|
||||
context.messages.push({
|
||||
role: "user",
|
||||
content: "Never mind, just tell me what is 2+2?",
|
||||
timestamp: Date.now(),
|
||||
});
|
||||
|
||||
// Step 5: The fix should filter out the orphaned tool call, and the request should succeed
|
||||
|
||||
Reference in New Issue
Block a user