typed_llm_generator 0.2.3
typed_llm_generator: ^0.2.3 copied to clipboard
build_runner code generator that turns @LlmSchema-annotated classes into JSON Schemas and validated-JSON factories for the typed_llm package.
typed_llm_generator #
The build_runner code generator for
typed_llm — turns
@LlmSchema()-annotated classes into JSON Schema constants and
validated-JSON factory functions.
This is a dev dependency; you don't import it in application code:
dependencies:
typed_llm: ^0.2.0
dev_dependencies:
build_runner: ^2.4.0
typed_llm_generator: ^0.2.0
Code generation requires Dart 3.9 or newer. The typed_llm runtime package
itself still supports Dart 3.4+ — only this dev-time generator needs the
newer SDK.
dart run build_runner build
See the typed_llm README for the
annotations this generator consumes, what it supports (primitives, DateTime,
enums, List<T>, nested @LlmSchema classes, freezed classes), and a full
usage example.
License #
MIT — see LICENSE.