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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f7a832f763cf1a6553773dd560f267001c53bbe41fa55431eb22a9547310a58d
|
|
4
|
+
data.tar.gz: 98f78789da920beb494863822a66ac23f1b6b96f8b4212c95d092062e9edd48e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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)
|