test: fix test
This commit is contained in:
parent
5f52abf090
commit
d65f09b82a
1 changed files with 17 additions and 1 deletions
|
|
@ -297,7 +297,23 @@ describe("session.message-v2.toModelMessage", () => {
|
||||||
type: "tool-result",
|
type: "tool-result",
|
||||||
toolCallId: "call-1",
|
toolCallId: "call-1",
|
||||||
toolName: "bash",
|
toolName: "bash",
|
||||||
output: { type: "text", value: "ok" },
|
output: {
|
||||||
|
type: "json",
|
||||||
|
value: {
|
||||||
|
attachments: [
|
||||||
|
{
|
||||||
|
id: "file-1",
|
||||||
|
sessionID: "session",
|
||||||
|
messageID: "m-assistant",
|
||||||
|
type: "file",
|
||||||
|
mime: "image/png",
|
||||||
|
filename: "attachment.png",
|
||||||
|
url: "https://example.com/attachment.png",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
output: "ok",
|
||||||
|
},
|
||||||
|
},
|
||||||
providerOptions: { openai: { tool: "meta" } },
|
providerOptions: { openai: { tool: "meta" } },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue