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 +4 -4
- data/lib/swarm_sdk/swarm/tool_configurator.rb +4 -1
- data/lib/swarm_sdk/version.rb +1 -1
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 64f83e4805438b3a6e47ebe1b0f01d8f8eaec78537e753be71740d96ef689a8e
         | 
| 4 | 
            +
              data.tar.gz: 0c73b64dd0fa3669c0ac19fca10e422a9c412c36fb602f78456cc9a21a797542
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 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)
         | 
    
        data/lib/swarm_sdk/version.rb
    CHANGED