genai 0.0.1
genai: ^0.0.1 copied to clipboard
A unified Dart/Flutter package for working with multiple Generative AI providers (Google Gemini, OpenAI, Anthropic, Azure OpenAI, Ollama, etc.) using a single request model.
We analyzed this package 2 days ago, and awarded it 120 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: Apache-2.0.
0/10 points: 20% or more of the public API has dartdoc comments
13 out of 210 API elements (6.2 %) have documentation comments.
Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.
To highlight public API members missing documentation consider enabling the public_member_api_docs lint.
Some symbols that are missing documentation: agent_service, agent_service.AIAgentService, agent_service.AIAgentService.AIAgentService.new, agent_service.AIAgentService.callAgent, agentic_engine.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
These platforms are not supported:
Package not compatible with platform Web
Because:
package:genai/genai.dartthat imports:package:genai/widgets/widgets.dartthat imports:package:genai/widgets/ai_config_slider.dartthat imports:package:genai/models/models.dartthat imports:package:genai/models/model_provider.dartthat imports:package:better_networking/better_networking.dartthat imports:package:better_networking/services/services.dartthat imports:package:better_networking/services/http_service.dartthat imports:package:better_networking/services/http_client_manager.dartthat imports:package:http/io_client.dartthat imports:package:http/src/io_streamed_response.dartthat imports:dart:io
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 9 issues. Showing the first 2:
INFO: The import of 'package:genai/agentic_engine/blueprint.dart' is unnecessary because all of the used elements are also provided by the import of 'package:genai/genai.dart'.
lib/agentic_engine/agent_service.dart:1:8
╷
1 │ import 'package:genai/agentic_engine/blueprint.dart';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/agentic_engine/agent_service.dart
INFO: The variable name '_call_provider' isn't a lowerCamelCase identifier.
lib/agentic_engine/agent_service.dart:5:26
╷
5 │ static Future<String?> _call_provider({
│ ^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/agentic_engine/agent_service.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
better_networking |
^0.0.2 |
0.0.3 | 0.0.3 | |
freezed_annotation |
^2.4.1 |
2.4.4 | 3.1.0 | |
json_annotation |
^4.9.0 |
4.9.0 | 4.9.0 | |
nanoid |
^1.0.0 |
1.0.0 | 1.0.0 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
adaptive_number |
- | 1.0.0 | 1.0.0 | |
async |
- | 2.13.0 | 2.13.0 | |
characters |
- | 1.4.0 | 1.4.1 | |
clock |
- | 1.1.2 | 1.1.2 | |
collection |
- | 1.19.1 | 1.19.1 | |
convert |
- | 3.1.2 | 3.1.2 | |
crypto |
- | 3.0.7 | 3.0.7 | |
dart_jsonwebtoken |
- | 3.3.1 | 3.3.1 | |
ed25519_edwards |
- | 0.3.1 | 0.3.1 | |
fixnum |
- | 1.1.1 | 1.1.1 | |
http |
- | 1.6.0 | 1.6.0 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
json5 |
- | 0.8.2 | 0.8.2 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
meta |
- | 1.17.0 | 1.17.0 | |
path |
- | 1.9.1 | 1.9.1 | |
petitparser |
- | 7.0.1 | 7.0.1 | |
pointycastle |
- | 4.0.0 | 4.0.0 | |
seed |
- | 0.0.3 | 0.0.3 | |
source_span |
- | 1.10.1 | 1.10.1 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
vector_math |
- | 2.2.0 | 2.2.0 | |
web |
- | 1.1.1 | 1.1.1 | |
xml |
- | 6.6.1 | 6.6.1 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^2.4.1` on freezed_annotation does not support the stable version `3.0.0`.
Try running dart pub upgrade --major-versions freezed_annotation to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.3, Flutter 3.38.4, Dart 3.10.3.
Check the analysis log for details.