From f1486da89807ed4c378e82d941ae9643e62aa8bc Mon Sep 17 00:00:00 2001 From: Kevin Cheung Date: Mon, 11 Nov 2024 15:44:06 -0800 Subject: [PATCH] docs: preamble syntax (#1235) --- js/doc-snippets/src/multi-agent/multi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/doc-snippets/src/multi-agent/multi.ts b/js/doc-snippets/src/multi-agent/multi.ts index 6dd21ad40..6af49bc3b 100644 --- a/js/doc-snippets/src/multi-agent/multi.ts +++ b/js/doc-snippets/src/multi-agent/multi.ts @@ -58,5 +58,5 @@ const triageAgent = ai.definePrompt( // [START chat] // Start a chat session, initially with the triage agent -const chat = ai.chat({ preamble: triageAgent }); +const chat = ai.chat(triageAgent); // [END chat]