From 3f1908a8225d22f29289441e768ea520b55ef347 Mon Sep 17 00:00:00 2001 From: Twisha Bansal <58483338+twishabansal@users.noreply.github.com> Date: Tue, 3 Feb 2026 11:36:16 +0530 Subject: [PATCH] docs: fix JS quickstart (#2406) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Response is being re-assigned ## PR Checklist > Thank you for opening a Pull Request! Before submitting your PR, there are a > few things you can do to make sure it goes smoothly: - [ ] Make sure you reviewed [CONTRIBUTING.md](https://github.com/googleapis/genai-toolbox/blob/main/CONTRIBUTING.md) - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/genai-toolbox/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) - [ ] Make sure to add `!` if this involve a breaking change 🛠️ Fixes # --- docs/en/getting-started/quickstart/js/genkit/quickstart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/getting-started/quickstart/js/genkit/quickstart.js b/docs/en/getting-started/quickstart/js/genkit/quickstart.js index 2ec16cb843..1c1f203539 100644 --- a/docs/en/getting-started/quickstart/js/genkit/quickstart.js +++ b/docs/en/getting-started/quickstart/js/genkit/quickstart.js @@ -53,7 +53,7 @@ export async function main() { for (const query of queries) { conversationHistory.push({ role: "user", content: [{ text: query }] }); - const response = await ai.generate({ + let response = await ai.generate({ messages: conversationHistory, tools: tools, });