akashi_gen 0.3.0 copy "akashi_gen: ^0.3.0" to clipboard
akashi_gen: ^0.3.0 copied to clipboard

Optional build_runner codegen for Akashi tool input schemas: emits the same Schema<T> as the runtime builder from annotated classes, so the two are drop-in interchangeable.

Changelog #

0.3.0 #

  • Coordinated 0.3.0 release (tracks akashi 0.3.0). No functional changes.

0.2.0 #

Initial release — optional build_runner codegen for tool-input schemas.

  • @toolInput / @SchemaField annotations.
  • A source_gen builder that emits a Schema<T> (named $<camelCaseClassName>Schema) plus a _$<ClassName>FromJson decoder for each annotated class. The generated Schema<T> is drop-in interchangeable with the runtime Schema builder.
  • Supports String/int/double/bool/List fields, string enums and descriptions via @SchemaField; required is inferred from non-nullable fields.
  • Strictly optional: akashi core never depends on this package. The example ships a committed .g.dart; regenerate with dart run build_runner build.
0
likes
140
points
32
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Optional build_runner codegen for Akashi tool input schemas: emits the same Schema<T> as the runtime builder from annotated classes, so the two are drop-in interchangeable.

Repository (GitHub)
View/report issues

Topics

#ai #agents #codegen #build-runner

License

MIT (license)

Dependencies

akashi, analyzer, build, source_gen

More

Packages that depend on akashi_gen