it("builds a reusable spoken consultant prompt with recent transcript", () => { const prompt = buildRealtimeVoiceAgentConsultPrompt({
args: { question: "Do we support realtime tools?" },
transcript: [
{ role: "user", text: "Can you check the repo?" },
{ role: "assistant", text: "I'll verify." },
],
surface: "a private Google Meet",
userLabel: "Participant",
assistantLabel: "Agent",
questionSourceLabel: "participant",
});
expect(prompt).toContain("during a private Google Meet");
expect(prompt).toContain("Participant: Can you check the repo?");
expect(prompt).toContain("Agent: I'll verify.");
expect(prompt).toContain("Question:\nDo we support realtime tools?");
});
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.