Skip to content

Commit 9280fc0

Browse files
authored
Update documentation for the genui implemention - 'Getting Started wi… (#573)
1 parent 8b65981 commit 9280fc0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/genui/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# `genui` Changelog
22

33
## 0.5.2 (in progress)
4+
- Updated README sample code to reflect current `FirebaseAiContentGenerator` API (added `catalog` parameter and replaced `tools` with `additionalTools`).
45

56
## 0.5.1
67

packages/genui/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@ provider.
169169
// Create a ContentGenerator to communicate with the LLM.
170170
// Provide system instructions and the tools from the GenUiManager.
171171
final contentGenerator = FirebaseAiContentGenerator(
172+
catalog: CoreCatalogItems.asCatalog(),
172173
systemInstruction: '''
173174
You are an expert in creating funny riddles. Every time I give you a word,
174175
you should generate UI that displays one new riddle related to that word.
175176
Each riddle should have both a question and an answer.
176177
''',
177-
tools: _genUiManager.getTools(),
178178
);
179179
180180
// Create the GenUiConversation to orchestrate everything.

0 commit comments

Comments
 (0)