搜索插件、代码仓与 APP 分类

插件详情v1.0.0

schemantic

一个轻量级库,用于类型安全的数据类和运行时 JSON 模式,内置序列化和验证功能。

AndroidiOSLinuxmacOSWebWindows
近 30 天下载
3.9万
喜欢数
12
Pub 分数
160

安装插件

flutter pub add schemantic

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Schemantic 是一个轻量级的 Dart 库,可实现具有内置运行时 JSON 模式、序列化和验证功能的类型安全数据类。它帮助开发者定义结构化数据模型,并自动根据模式定义进行验证,从而减少数据处理中的错误。适用于需要强大数据完整性的应用,尤其是在处理 API 或配置文件时。该库支持所有主要平台,并可无缝集成到 Flutter 及其他 Dart 项目中。

适合场景

  • API 数据建模
  • 配置管理
  • 表单验证
  • 数据持久化
  • 基于架构的UI渲染

主要特点

  • 类型安全的数据类
  • 运行时 JSON 模式验证
  • 自动序列化/反序列化
  • 以架构为中心的开发
  • 跨平台支持

适合对象

  • 注重数据完整性的开发者
  • 具有复杂 JSON 结构的项目
  • 使用模式驱动工作流的团队
  • 需要运行时验证的应用程序
  • Flutter 应用程序处理 API 响应

使用建议

  • 需要理解模式定义
  • 可能为简单数据类型增加轻微开销
  • 最适合具有结构化数据需求的项目
  • 仅限基于 JSON 的数据格式
  • 不适合非结构化或动态数据

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Genkit logo
Genkit Dart
AI SDK for Dart • LLM Framework • AI Agent Toolkit

Build production-ready AI-powered applications in Dart with a unified interface for text generation, structured output, tool calling, and agentic workflows.

Documentation • Discord


Using a coding agent? Install the skill.

Before you write a line of Genkit Dart with an agent, install the official Genkit Dart Agent Skill:

npx skills add genkit-ai/skills --skill developing-genkit-dart

It teaches your agent the current Genkit Dart APIs (flows, tools, agents, sessions, prompts, plugins, schemantic) and common gotchas. Source, manual install instructions, and skills for JS/TS, Go and Python: github.com/genkit-ai/skills.


See the Genkit package documentation for getting started, guides, and API reference.

Package Description Pub
genkit The Genkit framework: flows, tools, prompts, structured output, agents, and a client for calling deployed flows. Pub
genkit_google_genai Google AI plugin for Genkit Dart. Pub
genkit_vertexai Vertex AI plugin for Genkit Dart. Pub
genkit_anthropic Anthropic plugin for Genkit Dart. Pub
genkit_openai OpenAI plugin for Genkit Dart. Pub
genkit_chrome Chrome Prompt API (Gemini Nano) plugin for Genkit Dart. Pub
genkit_mcp Model Context Protocol (MCP) plugin for Genkit Dart. Pub
genkit_middleware Common middlewares (filesystem, skills, toolApproval) for Genkit Dart. Pub
genkit_a2ui A2UI (Agent-to-UI) streaming UI protocol support for Genkit Dart (experimental). Pub
genkit_shelf Shelf adapter for serving Genkit actions and agents over HTTP. Pub
genkit_otel OpenTelemetry GenAI semantic-conventions instrumentation for Genkit Dart. Pub
genkit_firebase_ai Firebase AI plugin for Genkit Dart. Pub
genkit_google_cloud Google Cloud integration for Genkit Dart (Firestore session store, experimental). Pub
schemantic Type-safe data classes and runtime JSON Schemas, with serialization and validation. Pub
schemantic_builder The code generator for schemantic. Pub

Versioning

Packages at version 1.0 or later follow semantic versioning:

  • 1.0+ packages: Breaking changes only ship in a new major version.
  • 0.x packages and experimental APIs (such as package:genkit/experimental.dart): May change in minor releases.

Each package has its own CHANGELOG.md, also shown on its pub.dev page.


Built by Google with contributions from the Open Source Community

所属分类

依赖

依赖清单 1 项

  • json_schema_builder^0.1.3

源码仓库

使用此插件的项目

暂无相关数据。

所在榜单