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 the sublayer generate agent command #93

Closed swerner closed 1 month ago

swerner commented 1 month ago

Interactive agent generator similar to the sublayer generate generator command.

You get asked to confirm that you'll be making a call to an AI service and will incur costs to generate the code, then you'll be asked for the provider and model you want to use.

After that, you'll be asked a series of questions about the agent you want to build, describe it, what triggers it, what its goal is, how it checks status, and how it takes a step. After that it generates the agent for you to start working with.

Need to play with it a bit more, but the confirmation step and selecting models should be optional I think or at least have a way to turn it off, can get annoying one you know what you want, but is also nice to be able to try out generation between different models.

Also noticing we probably want to be able to officially support a locally running model in the CLI at some point...