搜尋套件、儲存庫與 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

原始碼儲存庫

使用此套件的專案

暫無相關資料。

所在榜單