swarm_sdk 2.0.8 → 2.1.0

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: 85c1428807ba8420bbbd83d340e47d07a97fcb28de4eecaabb2a605c89dea0ca
4
- data.tar.gz: bcfb70b7435ad738b168d2e1bfbfb2cbb4022543b41e5a97ea3bb00657a5e3fe
3
+ metadata.gz: 64f83e4805438b3a6e47ebe1b0f01d8f8eaec78537e753be71740d96ef689a8e
4
+ data.tar.gz: 0c73b64dd0fa3669c0ac19fca10e422a9c412c36fb602f78456cc9a21a797542
5
5
  SHA512:
6
- metadata.gz: 305d43b7854a5407176561b6d1747754b38a8c04c67914722fd6903080d5e7a4debc10da7e462fc7e648a4282ca2ee1ecf5b5a56b6a224598d93ef6474834153
7
- data.tar.gz: c30ce7789c440d24689f09b9d6f3942d71cede7a3bb2d12fa2b70fbf1a1a2e998d7cff041e47bd4bee11571635c91064d71ecb50e264570352592640342138fa
6
+ metadata.gz: 1314faae00ad4a91235261a5e78f0bc44f984be40c9f7e5d27c01602bad8a2bdd627da53307202ed5fcde20fbb145c41ea1f2ba42717db65c578945c455d3895
7
+ data.tar.gz: 8bd2611db18c87dd9db6b1f9ba17378d8978332a395048a6756136c14cf9c5555ec070bd449556a436a01374f701c3921f950a1786106b656c04fecb75670890
@@ -298,7 +298,7 @@ module SwarmSDK
298
298
  # Check if a tool should be disabled based on disable_default_tools config
299
299
  #
300
300
  # @param tool_name [Symbol] Tool name to check
301
- # @param disable_config [nil, Boolean, Array<Symbol>] Disable configuration
301
+ # @param disable_config [nil, Boolean, Symbol, Array<Symbol>] Disable configuration
302
302
  # @return [Boolean] True if tool should be disabled
303
303
  def tool_disabled?(tool_name, disable_config)
304
304
  return false if disable_config.nil?
@@ -306,6 +306,9 @@ module SwarmSDK
306
306
  if disable_config == true
307
307
  # Disable all default tools
308
308
  true
309
+ elsif disable_config.is_a?(Symbol)
310
+ # Single tool name
311
+ disable_config == tool_name
309
312
  elsif disable_config.is_a?(Array)
310
313
  # Disable only tools in the array
311
314
  disable_config.include?(tool_name)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SwarmSDK
4
- VERSION = "2.0.8"
4
+ VERSION = "2.1.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swarm_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.8
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Arruda