swarm_sdk 2.0.5 → 2.0.6

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: c2b0a4dbb64785b7fc12ad6a461acfb4502135cbf06a86f08de6ae7b2df05e21
4
- data.tar.gz: c118e7fb996b6ce679d1feb80e359f246ca5741d4d2ae1dbbece537796502b0c
3
+ metadata.gz: 3be3cf010826114554a37e11c34e80b41118222bad40131cdabc8fc509bc739f
4
+ data.tar.gz: 4541601c163ab9a23238703dcb6950e1ecc844d3bca2254f87b4d096c1bf036e
5
5
  SHA512:
6
- metadata.gz: 9fe12e5956c41623e43b0f7b69d8bce442052c180aaf89e787b1163836f013a45435a8147ce749eaaf2809799cb0c17f3ac2942ed5fdff048805d8ab21d1924d
7
- data.tar.gz: 526374b16146e8721c2b1a7370bf58843fa7bd03b36b5f1cd6a5a23e263446171005dec50ce5ec979d6aa42f5a07886f27f09939aacd76c45c922478782624bb
6
+ metadata.gz: a5fb5e8a592b4408475e3c8062777bd3089ac03913669663b6f7a0765ee97a1a22d5a5a67160f0349db25795c0961dae91f8eba2cf889307b077da5fd0e29b6c
7
+ data.tar.gz: 4ce20fd3e9e9dfb9289e0d7a10c4d41cc62208c7965de14ed20cea0bd1dbffeaefcf07564f1d0df2654d9f69460c8395829b83a810a7d68a165b82ad0a136d5a
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SwarmSDK
4
- VERSION = "2.0.5"
4
+ VERSION = "2.0.6"
5
5
  end
data/lib/swarm_sdk.rb CHANGED
@@ -134,12 +134,24 @@ RubyLLM.configure do |config|
134
134
  config.gpustack_api_key ||= ENV["GPUSTACK_API_KEY"]
135
135
  end
136
136
 
137
- # monkey patch ruby_llm/mcp to add `id` when sending "notifications/initialized" message
138
- # https://github.com/patvice/ruby_llm-mcp/issues/65
137
+ # monkey patches
138
+ # ruby_llm/mcp
139
+ # - add `id` when sending "notifications/initialized" message: https://github.com/patvice/ruby_llm-mcp/issues/65
140
+ # - remove `to_sym` on MCP parameter type: https://github.com/patvice/ruby_llm-mcp/issues/62#issuecomment-3421488406
139
141
  require "ruby_llm/mcp/notifications/initialize"
142
+ require "ruby_llm/mcp/parameter"
140
143
 
141
144
  module RubyLLM
142
145
  module MCP
146
+ class Parameter < RubyLLM::Parameter
147
+ def initialize(name, type: "string", desc: nil, required: true, default: nil, union_type: nil)
148
+ super(name, type: type, desc: desc, required: required)
149
+ @properties = {}
150
+ @union_type = union_type
151
+ @default = default
152
+ end
153
+ end
154
+
143
155
  module Notifications
144
156
  class Initialize
145
157
  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.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Arruda