swarm_sdk 2.0.7 → 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
- data/lib/swarm_sdk.rb +0 -9
- metadata +5 -5
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
data/lib/swarm_sdk.rb
CHANGED
|
@@ -147,15 +147,6 @@ require "ruby_llm/mcp/parameter"
|
|
|
147
147
|
|
|
148
148
|
module RubyLLM
|
|
149
149
|
module MCP
|
|
150
|
-
class Parameter < RubyLLM::Parameter
|
|
151
|
-
def initialize(name, type: "string", desc: nil, required: true, default: nil, union_type: nil)
|
|
152
|
-
super(name, type: type, desc: desc, required: required)
|
|
153
|
-
@properties = {}
|
|
154
|
-
@union_type = union_type
|
|
155
|
-
@default = default
|
|
156
|
-
end
|
|
157
|
-
end
|
|
158
|
-
|
|
159
150
|
module Notifications
|
|
160
151
|
class Initialize
|
|
161
152
|
def call
|
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
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Paulo Arruda
|
|
@@ -41,16 +41,16 @@ dependencies:
|
|
|
41
41
|
name: ruby_llm-mcp
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
|
-
- - "
|
|
44
|
+
- - "~>"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version:
|
|
46
|
+
version: 0.6.2
|
|
47
47
|
type: :runtime
|
|
48
48
|
prerelease: false
|
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
|
-
- - "
|
|
51
|
+
- - "~>"
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version:
|
|
53
|
+
version: 0.6.2
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
55
|
name: zeitwerk
|
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|