Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/genui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion packages/genui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ provider.
// Create a ContentGenerator to communicate with the LLM.
// Provide system instructions and the tools from the GenUiManager.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This comment is now outdated. The code no longer passes tools from _genUiManager. The core UI tools are now inferred from the catalog parameter within FirebaseAiContentGenerator. You should update this comment to reflect the current implementation.

Suggested change
// Provide system instructions and the tools from the GenUiManager.
// Provide system instructions and any additional tools.

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.
Expand Down
Loading