-
Notifications
You must be signed in to change notification settings - Fork 85
Update documentation for the genui implemention - 'Getting Started wi… #573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
ddfab25
2d7bdf7
ea76b60
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -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) | ||||||||||||||
|
||||||||||||||
| ], | ||||||||||||||
|
||||||||||||||
| additionalTools: [ | |
| // Additional tools to be provided to the AI model. Schema [AiTool] (required String name, required String description, Schema? parameters, String? prefix) | |
| ], | |
| // Additional tools to be provided to the AI model. The schema for an AiTool is: | |
| // required String name, required String description, Schema? parameters, String? prefix | |
| additionalTools: [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is now outdated. The code no longer passes tools from
_genUiManager. The core UI tools are now inferred from thecatalogparameter withinFirebaseAiContentGenerator. You should update this comment to reflect the current implementation.