Module: RubyLLM::ActiveRecord

Defined in:
lib/ruby_llm/active_record/acts_as.rb,
lib/ruby_llm/active_record/batch.rb,
lib/ruby_llm/active_record/model.rb,
lib/ruby_llm/active_record/usage.rb,
lib/ruby_llm/active_record/tool_call.rb,
lib/ruby_llm/active_record/chat_methods.rb,
lib/ruby_llm/active_record/message_methods.rb,
lib/ruby_llm/active_record/payload_helpers.rb,
lib/ruby_llm/active_record/attachment_helpers.rb

Overview

Rails integration brings the RubyLLM API to Active Record models, with Active Storage attachments and a persisted message lifecycle for Hotwire streaming and background jobs. Applications own chats and messages; RubyLLM owns the supporting usage, tool-call, registry, and batch records.

Defined Under Namespace

Modules: ActsAs, AttachmentHelpers, ChatMethods, MessageMethods, PayloadHelpers Classes: Batch, Model, ToolCall, Usage