Module: Llm::Owned

Extended by:
ActiveSupport::Concern
Defined in:
app/models/llm/owned.rb

Overview

Include in whatever model is the tenant/owner concept in the host app (Account, Team, Organization, User, ...). Credentials and usage records belong to that model polymorphically, so this gem never has to assume what the owner is called.

class Account < ApplicationRecord
include Llm::Owned
end

Llm::Client.for(current_account).call_tool(...)