ruby-openai-swarm 0.2.1 → 0.2.2

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: b48c60ccd21aaf774b8c7b8a325f42e3dc536d7c8ccea30930fd20f15e5d8903
4
- data.tar.gz: 9962aca258023744e3e6cae3ccebb2f1212f8b2136ab7546fb92f9f919917e5a
3
+ metadata.gz: 3d67b89e89e841ab9bdc643976530992131eb83bc4b472fc2420523e1e4eb469
4
+ data.tar.gz: e243f02c680ed9f2623e4895fc6cd4dce51fc313c0e65506ab65c7da3c691185
5
5
  SHA512:
6
- metadata.gz: d067c62379602b8f0b267eaf4168f14faf96112444f1abe7731145c99f34efe19045d967c2d90e854bb277e64e8659f8a7e7884dfc4f2a5aca990f3d786c2944
7
- data.tar.gz: 77eaae12e12a5dd0a3db95737c9221ed867ea0aacb40847020da7de42631c0f51414aeb3b8901658be82b3b5cebc6b76045d2a8f2b20262fb8772ed1812b51b5
6
+ metadata.gz: a45863631968a5d0bfc7798b18eb3d565dc231fc6f2472fe10fe6e08a545dfca38d574ba27a674841b8f42e03b2eb9e5cc072e3f153c53b1bf5efea4eddcf36e
7
+ data.tar.gz: 0bf2a1cc69a4d82674152f2079cfc9e6c98f10cafeb9865bbc61c3840886cd7b821bf887c8f9f3f8081695b9d58826f29d21955a250819715ab4a2354b55a5bf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-openai-swarm (0.1.0)
4
+ ruby-openai-swarm (0.2.2)
5
5
  ruby-openai (~> 7.3)
6
6
 
7
7
  GEM
@@ -102,10 +102,10 @@ module OpenAISwarm
102
102
  unless function_map.key?(name)
103
103
  Util.debug_print(debug, "Tool #{name} not found in function map.")
104
104
  partial_response.messages << {
105
- role: 'tool',
106
- tool_call_id: tool_call['id'],
107
- tool_name: name,
108
- content: "Error: Tool #{name} not found."
105
+ 'role' => 'tool',
106
+ 'tool_call_id' => tool_call['id'],
107
+ 'tool_name' => name,
108
+ 'content' => "Error: Tool #{name} not found."
109
109
  }
110
110
  next
111
111
  end
@@ -123,10 +123,10 @@ module OpenAISwarm
123
123
  result = handle_function_result(raw_result, debug)
124
124
 
125
125
  partial_response.messages << {
126
- role: 'tool',
127
- tool_call_id: tool_call['id'],
128
- tool_name: name,
129
- content: result.value
126
+ 'role' => 'tool',
127
+ 'tool_call_id' => tool_call['id'],
128
+ 'tool_name' => name,
129
+ 'content' => result.value
130
130
  }
131
131
 
132
132
  partial_response.context_variables.merge!(result.context_variables)
@@ -1,3 +1,3 @@
1
1
  module OpenAISwarm
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-openai-swarm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grayson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-05 00:00:00.000000000 Z
11
+ date: 2024-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-openai