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 diff --git a/packages/genui/README.md b/packages/genui/README.md index cecee14d1..227f8d32d 100644 --- a/packages/genui/README.md +++ b/packages/genui/README.md @@ -169,12 +169,12 @@ 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(), ); // Create the GenUiConversation to orchestrate everything.