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.
Blueprints is very effective at generating Sublayer::Generators and Sublayer::Actions but the pattern I've been exploring with Sublayer::Tasks doesn't seem to work very well.
I tried to create a blueprint of the MakeRspecTestsPassTask here and generate a few variations, but it didn't jump to using and chaining actions and generators together.
Working to brainstorm ways to get it to reliably create new tasks and hallucinate the Sublayer::Actions and Sublayer::Generators it would need to complete the task...
Claude now has native tools/functions. Theoretically we could rip out the Providers::Claude implementation and rewrite it to look similarly to the ::OpenAi provider.
Except the schema of claude3 tools looks different to openai functions.
Suggestion: OutputProviders rename to_hash to to_openai_hash; and then we add to_claude3_hash to be used for Claude provider? Fingers crossed there isn't a distinct tool/function OutputProvider schema for every LLM. My suggestion won't last the test of time.
For example, being able to optionally choose between using gpt-3.5 for something, using gpt-4-turbo for others, or between using claude-haiku for some and claude-opus for others if you want, but for the majority of cases being able to mostly rely on the defaults.
For model providers like Groq, Local, OpenRouter, etc, each different model you might want to use inside these different services could have different function calling/tool calling mechanism and quirks: Specifically I just tried generating something with Groq+llama3 and the xml response came back in a different format.
For now, going to move away from providing direct solutions for things like Groq and make it similar to what we're doing with output_adapters where you can specify a custom AI provider in your code to use and implement the specific quirks of that model. Over time we'll find patterns that work with things like Llama3 or Mistral or Hermes2 that we can provide as bases.