ruby_llm-agents 3.7.0 → 3.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce728e318b0681df1f65dc93e4c264f35573e863b86841394ab218994dd3dd29
4
- data.tar.gz: f036ab7df822277740a0f840afd52d3d68c36bbd37843ae16032da7f9406864e
3
+ metadata.gz: f7a832f763cf1a6553773dd560f267001c53bbe41fa55431eb22a9547310a58d
4
+ data.tar.gz: 98f78789da920beb494863822a66ac23f1b6b96f8b4212c95d092062e9edd48e
5
5
  SHA512:
6
- metadata.gz: 6e63acc86ac7413983957abc46bbf5ba997230ae06480d6aa2eb77d6f25524e02cc58131112cda0b5eb413452078766d8afec001d98e56e6fb3ae2e8a0602dff
7
- data.tar.gz: d01dba7531c3e503f7b00156a254c8a71ab582d20b194ad22d1f6bc1734cdd38b814e6581855274e08b49bb2c8d33e7655a02c2ed834771d9a990085ce743c84
6
+ metadata.gz: 6d9742ca2fbf2bae56663233105c0d2507705d285da0809fd4dd08ad75a6431830d04609adbdea42ef56b1cec10db684b2dc0f8c3883028e51a29c9c42827e49
7
+ data.tar.gz: 776c4f6fb00b242d6d186d7b1693e7c24dd04cbb47ee6f9301c182ee152255fd048536222b66ca5a84ab1aeeea26819149b98e1327059084a9cfaf4b41ce67cb
@@ -60,6 +60,25 @@ module RubyLlmAgents
60
60
  )
61
61
  end
62
62
 
63
+ # Add usage counter columns to tenants (v3.x upgrade)
64
+ def create_add_usage_counters_migration
65
+ unless table_exists?(:ruby_llm_agents_tenants)
66
+ say_status :skip, "tenants table does not exist yet", :yellow
67
+ return
68
+ end
69
+
70
+ if column_exists?(:ruby_llm_agents_tenants, :monthly_cost_spent)
71
+ say_status :skip, "usage counter columns already exist on tenants", :yellow
72
+ return
73
+ end
74
+
75
+ say_status :upgrade, "Adding usage counter columns to tenants", :blue
76
+ migration_template(
77
+ "add_usage_counters_to_tenants_migration.rb.tt",
78
+ File.join(db_migrate_path, "add_usage_counters_to_ruby_llm_agents_tenants.rb")
79
+ )
80
+ end
81
+
63
82
  # Add assistant_prompt column to execution_details (v3.0 -> v3.1 upgrade)
64
83
  def create_add_assistant_prompt_migration
65
84
  if column_exists?(:ruby_llm_agents_execution_details, :assistant_prompt)
@@ -4,6 +4,6 @@ module RubyLLM
4
4
  module Agents
5
5
  # Current version of the RubyLLM::Agents gem
6
6
  # @return [String] Semantic version string
7
- VERSION = "3.7.0"
7
+ VERSION = "3.7.1"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_llm-agents
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.0
4
+ version: 3.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - adham90