Adding blog post on A2UI client side functions - #13794
Draft
sfshaza2 wants to merge 1 commit into
Draft
Conversation
sfshaza2
marked this pull request as draft
August 24, 2026 22:20
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new blog post explaining how to use A2UI's client-side functions to delegate local operations to Dart code on a user's device. The review feedback identifies several syntax and formatting issues within the markdown file, including an invalid Dart enum reference in a code snippet, a missing backtick, a typo in 'executeSync', an empty markdown link, and a broken link syntax at the end of the document.
|
|
||
| // 3. The expected return type for the binding. | ||
| @override | ||
| ClientFunctionReturnType get returnType => .string; |
Contributor
There was a problem hiding this comment.
| 1. `argumentSchema`: Built using | ||
| [`json_schema_builder`](https://pub.dev/packages/json_schema_builder), | ||
| this schema informs the LLM exactly which parameters are required | ||
| (`ingredient_id` and `quantity). |
Contributor
| [`json_schema_builder`](https://pub.dev/packages/json_schema_builder), | ||
| this schema informs the LLM exactly which parameters are required | ||
| (`ingredient_id` and `quantity). | ||
| 1. `executeSyn`c: The core Dart method executed on the user's device |
Contributor
| ``` | ||
|
|
||
| When initializing the conversation session, | ||
| [`genui`'s `PromptBuilder`]() inspects the catalog and automatically |
Contributor
Comment on lines
+245
to
+249
| [**flutter/demos** repository on GitHub](https://github.com/flutter/demos | ||
| to inspect the complete source code for Commis and other Dart GenUI samples. | ||
|
|
||
| Happy building! | ||
| ) |
Contributor
There was a problem hiding this comment.
Collaborator
|
Staged preview of the updated docs.flutter.dev site (updated for commit dd96053): https://flutter-docs-prod--docs-pr13794-a2ui-client-side-funct-0p1n6v0y.web.app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As it says. Waiting for header image.