ruby_llm-agents 3.5.1 → 3.5.3

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: 125e23713ce0912e6ce129e66bd019f9a178ce77a2bd22af2dfba93e17911e42
4
- data.tar.gz: 583e35f0e9328c42b0a1f0627e629478ffea13fe881843c94e4a318d49261488
3
+ metadata.gz: 16ad41e4302590a81376053851b002e59341c48622819cd3cd6206d00b2081c7
4
+ data.tar.gz: 2405e9a324d4fe2943e1664e3ac6fb9e4622826492002d069bcba5ad6f89a949
5
5
  SHA512:
6
- metadata.gz: 28ab8fbe2ca38c575bcfdf8775e8a57f13308850a56b08aeaa1c76aacd541cc388958c89272c831d362859cf9334fac1892cfb672a2376aa6831a45f65f1d695
7
- data.tar.gz: ef48cffadc21245efc920d6990830f9db536da6fcaf02b36f9d1aa127a7d09f337832fa13c878f1d100414dd8064d627d3869f5b0b46f461cbec0f5b3eefe7cf
6
+ metadata.gz: 5cb6889761a4361f084e21b7be73717408f2c3d000e1fe895a88f769d54b4c45a4962da4db7193acc17bfe4d252beea40258ea72e1c9bb7f969b2a046850cfb3
7
+ data.tar.gz: 339da1c12d7c2de2aec42d8dabdc7aaf01f53da831450aaa46c9bcb646aa2eb538d7e89dfb21ffa4e98ce413547f21ffda7267f1c7af63b5a9e2e48f20df9685
@@ -8,6 +8,9 @@ module RubyLLM
8
8
  # agent executions. Supports both HTML and Turbo Stream responses
9
9
  # for seamless filtering without full page reloads.
10
10
  #
11
+ # Turbo Stream support is optional — works in API-only apps or
12
+ # apps without turbo-rails installed.
13
+ #
11
14
  # @see Paginatable For pagination implementation
12
15
  # @see Filterable For filter parsing and validation
13
16
  # @api private
@@ -28,7 +31,7 @@ module RubyLLM
28
31
 
29
32
  respond_to do |format|
30
33
  format.html
31
- format.turbo_stream
34
+ format.turbo_stream if turbo_stream_available?
32
35
  end
33
36
  end
34
37
 
@@ -51,12 +54,14 @@ module RubyLLM
51
54
 
52
55
  respond_to do |format|
53
56
  format.html { render :index }
54
- format.turbo_stream do
55
- render turbo_stream: turbo_stream.replace(
56
- "executions_list",
57
- partial: "ruby_llm/agents/executions/list",
58
- locals: {executions: @executions, pagination: @pagination, filter_stats: @filter_stats}
59
- )
57
+ if turbo_stream_available?
58
+ format.turbo_stream do
59
+ render turbo_stream: turbo_stream.replace(
60
+ "executions_list",
61
+ partial: "ruby_llm/agents/executions/list",
62
+ locals: {executions: @executions, pagination: @pagination, filter_stats: @filter_stats}
63
+ )
64
+ end
60
65
  end
61
66
  end
62
67
  end
@@ -209,6 +214,13 @@ module RubyLLM
209
214
  # Eager load children for grouping
210
215
  scope.includes(:child_executions)
211
216
  end
217
+
218
+ # Checks whether turbo-rails is available in the host application
219
+ #
220
+ # @return [Boolean]
221
+ def turbo_stream_available?
222
+ defined?(Turbo)
223
+ end
212
224
  end
213
225
  end
214
226
  end
@@ -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.5.1"
7
+ VERSION = "3.5.3"
8
8
  end
9
9
  end
@@ -58,8 +58,9 @@ module RubyLLM
58
58
 
59
59
  case tenant_value
60
60
  when nil
61
- # No tenant - single-tenant mode
62
- context.tenant_id = nil
61
+ # No explicit tenant - fall back to configured tenant_resolver
62
+ resolved_id = RubyLLM::Agents.configuration.current_tenant_id
63
+ context.tenant_id = resolved_id&.to_s
63
64
  context.tenant_object = nil
64
65
  context.tenant_config = nil
65
66
 
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.5.1
4
+ version: 3.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - adham90