A platform for community discussion. Free, open, simple.
# frozen_string_literal: true
class AiToolAction < ActiveRecord::Base
belongs_to :ai_agent
validates :tool_name, presence: true
validates :bot_user_id, presence: true
end
# == Schema Information
#
# Table name: ai_tool_actions
#
# id :bigint not null, primary key
# tool_name :string not null
# tool_options :jsonb not null
# tool_parameters :jsonb not null
# created_at :datetime not null
# updated_at :datetime not null
# ai_agent_id :bigint not null
# bot_user_id :integer not null
# post_id :integer
#
# Indexes
#
# index_ai_tool_actions_on_ai_agent_id (ai_agent_id)
#
# Foreign Keys
#
# fk_rails_... (ai_agent_id => ai_agents.id)
#