typed_llm_generator 0.2.3 copy "typed_llm_generator: ^0.2.3" to clipboard
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 #

pub package License: MIT

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.

0
likes
160
points
174
downloads

Documentation

API reference

Publisher

verified publisherdiyalotech.com

Weekly Downloads

build_runner code generator that turns @LlmSchema-annotated classes into JSON Schemas and validated-JSON factories for the typed_llm package.

Repository (GitHub)
View/report issues
Contributing

Topics

#llm #json-schema #build-runner #code-generation

License

MIT (license)

Dependencies

analyzer, build, source_gen, typed_llm

More

Packages that depend on typed_llm_generator