sublayerapp / sublayer

A model-agnostic Ruby Generative AI DSL and framework. Provides base classes for building Generators, Actions, Tasks, and Agents that can be used to build AI powered applications in Ruby.
https://docs.sublayer.com
MIT License
109 stars 2 forks source link

add integer output adapter #29

Closed AndrewBKang closed 2 months ago

AndrewBKang commented 5 months ago

https://github.com/sublayerapp/sublayer/issues/16

swerner commented 5 months ago

For these new output adapters, let's also make sure to create a new example in the examples directory that uses it along with the specs for the main 3 providers like in here: https://github.com/sublayerapp/sublayer/blob/main/spec/generators/examples/code_from_description_generator_spec.rb

I expect that we're going to be changing up the format_properties method in the providers a bunch so want to make sure that will still work across all these adapters.

Also, kind of thinking we may not need to assert on the exact contents, since that will probably change any time we re-generate the VCR cassettes....maybe there's a way to verify that the contents of the generate call actually exist and are roughly correct? Like for this integer one, that the result is actually a number, but the exact number doesn't matter for testing purposes you know?