sublayer
sublayer copied to clipboard
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.
love having the new logging support, though only JSON logger can log to a file; we want to tail the logs from a file, ideally in a standardized syslog newline...
Started working on adding the list_of_strings output adapter, and along the way updated the gemini provider to use the function calling syntax that should be enabled on the latest models:...
In older versions of the sublayer gem, we had this concept of user input for approving and/or editing values. Need to bring that back to make it easy for you...
Bringing this discussion here from the discord. Talking a bunch lately about what testing an agent looks like and there are lots of pitfalls and things you have to stub...
Thinking about creating a Base provider class that can handle the logging and error messaging so we don't have to duplicate all that work every time we want to add...
Looks like due to the nature of the way we're using function calling to get structured outputs back, some models occasionally return empty strings for the parameters or just return...
```ruby class SayHelloWorld5TimesAgent < Sublayer::Agents::Base trigger TimeTrigger.new(5) goal_condition { @greeting_count == 5 } check_status { puts "Current hello world count is: #{@greeting_count}" } step do @greeting_count += 1 puts "hello...
when creating an agent a check_status must be supplied even if it will be empty. (this may be a feature not a bug) but perhaps it might be valuable to...
The links on the documentation home page are not working. For example, the "Quick start" link is: * https://docs.sublayer.com/docs/quick/_start.md But the working sidebar link is: * https://docs.sublayer.com/docs/quick_start/ Every link apart...