diff --git a/src/agents/tools/tts-tool.test.ts b/src/agents/tools/tts-tool.test.ts index 93b0083bcf6..ec50fed03d8 100644 --- a/src/agents/tools/tts-tool.test.ts +++ b/src/agents/tools/tts-tool.test.ts @@ -16,7 +16,8 @@ describe("createTtsTool", () => { it("returns error when no delivery channel is available", async () => { const tool = createTtsTool(); const result = await tool.execute("test-call", { text: "hello world" }); - expect(result.content[0].text).toContain("requires a bound channel"); - expect(result.details.error).toBe("no_channel"); + const firstContent = result.content[0] as { type: string; text: string }; + expect(firstContent.text).toContain("requires a bound channel"); + expect((result.details as Record).error).toBe("no_channel"); }); });