Commit e94c20f
Feature/flutter structured output (#382)
* feat: implement structured output json for flutter
* refactor: add return structuredData in result generate, fix some type in ffi and bride
* refactor: add systemprompt from StructuredOutputHandler, impove system prompt
* update: example for structured output json
* Update examples/flutter/RunAnywhereAI/lib/features/structured_output/structured_output_view.dart
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
* Update sdk/runanywhere-flutter/packages/runanywhere/lib/public/runanywhere.dart
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
* Update sdk/runanywhere-flutter/packages/runanywhere/lib/public/runanywhere.dart
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
* Update examples/flutter/RunAnywhereAI/lib/features/structured_output/structured_output_view.dart
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
* refactor: update structuredData type and fix layout in structured data example screen
* fix: remove redundant import icons
* Update sdk/runanywhere-flutter/packages/runanywhere/lib/features/llm/structured_output/structured_output_handler.dart
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
* Update sdk/runanywhere-flutter/packages/runanywhere/lib/public/runanywhere.dart
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
* Update sdk/runanywhere-flutter/packages/runanywhere/lib/public/runanywhere.dart
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
* fix: remove duplicate class
* fix: remove duplicate StreamToken class, fix memory leak issue, fix exception handle
---------
Co-authored-by: Sanchit Monga <sanchitmonga22@gmail.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>1 parent f37034a commit e94c20f
11 files changed
Lines changed: 1333 additions & 141 deletions
File tree
- examples
- android/RunAnywhereAI/app/src/main/java/com/runanywhere/runanywhereai/presentation/settings
- flutter/RunAnywhereAI/lib/features
- chat
- structured_output
- sdk/runanywhere-flutter/packages/runanywhere/lib
- features/llm/structured_output
- native
- public
- types
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
811 | 813 | | |
812 | 814 | | |
813 | 815 | | |
814 | | - | |
| 816 | + | |
815 | 817 | | |
816 | 818 | | |
817 | 819 | | |
| |||
841 | 843 | | |
842 | 844 | | |
843 | 845 | | |
844 | | - | |
| 846 | + | |
845 | 847 | | |
846 | 848 | | |
847 | | - | |
| 849 | + | |
848 | 850 | | |
849 | 851 | | |
850 | 852 | | |
| |||
875 | 877 | | |
876 | 878 | | |
877 | 879 | | |
878 | | - | |
| 880 | + | |
879 | 881 | | |
880 | 882 | | |
881 | 883 | | |
| |||
893 | 895 | | |
894 | 896 | | |
895 | 897 | | |
896 | | - | |
| 898 | + | |
897 | 899 | | |
898 | | - | |
| 900 | + | |
899 | 901 | | |
900 | 902 | | |
901 | 903 | | |
| |||
917 | 919 | | |
918 | 920 | | |
919 | 921 | | |
920 | | - | |
| 922 | + | |
921 | 923 | | |
922 | 924 | | |
923 | 925 | | |
| |||
936 | 938 | | |
937 | 939 | | |
938 | 940 | | |
939 | | - | |
| 941 | + | |
940 | 942 | | |
941 | 943 | | |
942 | 944 | | |
| |||
945 | 947 | | |
946 | 948 | | |
947 | 949 | | |
948 | | - | |
| 950 | + | |
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
452 | 453 | | |
453 | 454 | | |
454 | 455 | | |
455 | | - | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
456 | 468 | | |
457 | 469 | | |
458 | 470 | | |
| |||
0 commit comments