From ddfab25568510c63839564757f039b29bb4dad20 Mon Sep 17 00:00:00 2001 From: bjorndonald <28762044+bjorndonald@users.noreply.github.com> Date: Mon, 24 Nov 2025 16:59:39 +0100 Subject: [PATCH 1/3] Update documentation for the genui implemention - 'Getting Started with `genui`' on pub.dev --- packages/genui/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/genui/README.md b/packages/genui/README.md index cecee14d1..6426afc94 100644 --- a/packages/genui/README.md +++ b/packages/genui/README.md @@ -169,12 +169,15 @@ provider. // Create a ContentGenerator to communicate with the LLM. // Provide system instructions and the tools from the GenUiManager. final contentGenerator = FirebaseAiContentGenerator( + catalog: CoreCatalogItems.asCatalog(), systemInstruction: ''' You are an expert in creating funny riddles. Every time I give you a word, you should generate UI that displays one new riddle related to that word. Each riddle should have both a question and an answer. ''', - tools: _genUiManager.getTools(), + additionalTools: [ + // Additional tools to be provided to the AI model. Schema [AiTool] (required String name, required String description, Schema? parameters, String? prefix) + ], ); // Create the GenUiConversation to orchestrate everything. From 2d7bdf70f224b3d95249652c8c94d68a859c1173 Mon Sep 17 00:00:00 2001 From: bjorndonald <28762044+bjorndonald@users.noreply.github.com> Date: Mon, 24 Nov 2025 17:08:42 +0100 Subject: [PATCH 2/3] Updated the changelog to reflect new changes to the genui Readme file --- packages/genui/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/genui/CHANGELOG.md b/packages/genui/CHANGELOG.md index 1c34efe8e..a6f47d0b2 100644 --- a/packages/genui/CHANGELOG.md +++ b/packages/genui/CHANGELOG.md @@ -1,6 +1,7 @@ # `genui` Changelog ## 0.5.2 (in progress) +- Updated README sample code to reflect current `FirebaseAiContentGenerator` API (added `catalog` parameter and replaced `tools` with `additionalTools`). ## 0.5.1 From ea76b60b820cc33302880e8c08ddd717a974b437 Mon Sep 17 00:00:00 2001 From: bjorndonald <28762044+bjorndonald@users.noreply.github.com> Date: Fri, 28 Nov 2025 05:35:34 +0100 Subject: [PATCH 3/3] Removed the additionalTools paramter from example in genui ReadMe --- packages/genui/README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/genui/README.md b/packages/genui/README.md index 6426afc94..227f8d32d 100644 --- a/packages/genui/README.md +++ b/packages/genui/README.md @@ -175,9 +175,6 @@ provider. you should generate UI that displays one new riddle related to that word. Each riddle should have both a question and an answer. ''', - additionalTools: [ - // Additional tools to be provided to the AI model. Schema [AiTool] (required String name, required String description, Schema? parameters, String? prefix) - ], ); // Create the GenUiConversation to orchestrate everything.