Skip to content

Commit 75b1903

Browse files
committed
test(agents): use real tool history fixtures
1 parent 463d149 commit 75b1903

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

‎src/agents/openai-transport-stream.test.ts‎

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4440,24 +4440,20 @@ describe("openai transport stream", () => {
44404440
role: "assistant",
44414441
content: [
44424442
{
4443-
type: "tool-call",
4444-
toolCallId: "call_abc",
4445-
toolName: "noop",
4446-
args: {},
4443+
type: "toolCall",
4444+
id: "call_abc",
4445+
name: "noop",
4446+
arguments: {},
44474447
},
44484448
],
44494449
timestamp: Date.now(),
44504450
},
44514451
{
4452-
role: "tool",
4453-
content: [
4454-
{
4455-
type: "tool-result",
4456-
toolCallId: "call_abc",
4457-
toolName: "noop",
4458-
result: "ok",
4459-
},
4460-
],
4452+
role: "toolResult",
4453+
toolCallId: "call_abc",
4454+
toolName: "noop",
4455+
content: [{ type: "text", text: "ok" }],
4456+
isError: false,
44614457
timestamp: Date.now(),
44624458
},
44634459
],

0 commit comments

Comments
 (0)