ruby-openai-swarm 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a38e5d5707c6c8a0afae10fa5bfae1df4a42cf8695325def6993f7409144f548
4
- data.tar.gz: c61bcf3c4351e13beacbc3744380a34a325739b195bda2a59a8db05fc0c4e784
3
+ metadata.gz: b48c60ccd21aaf774b8c7b8a325f42e3dc536d7c8ccea30930fd20f15e5d8903
4
+ data.tar.gz: 9962aca258023744e3e6cae3ccebb2f1212f8b2136ab7546fb92f9f919917e5a
5
5
  SHA512:
6
- metadata.gz: ac278a0b6931574e8c4ab01bd452f3164bea7cc3bdc5c9779df9e9377281c533bcc91e2e4465a4c6356c77e68479ca7128fed27fb6dfd999a42cf47bfe14893d
7
- data.tar.gz: 46515f61009a051913ff9f9f496be3e20bc82236f8b7badcc1f1e300a8de76aed62822eeaf97906977062675493c3ca8a85a9218cb7d956847ae6886453fadb2
6
+ metadata.gz: d067c62379602b8f0b267eaf4168f14faf96112444f1abe7731145c99f34efe19045d967c2d90e854bb277e64e8659f8a7e7884dfc4f2a5aca990f3d786c2944
7
+ data.tar.gz: 77eaae12e12a5dd0a3db95737c9221ed867ea0aacb40847020da7de42631c0f51414aeb3b8901658be82b3b5cebc6b76045d2a8f2b20262fb8772ed1812b51b5
data/README.md CHANGED
@@ -18,6 +18,10 @@ A Ruby-based educational framework adapted from OpenAI’s [Swarm](https://githu
18
18
  - [examples](#examples)
19
19
  - [Documentation](#documentation)
20
20
 
21
+ ## quick show
22
+ https://github.com/user-attachments/assets/ed84ef83-5ccb-4223-abb8-933d0ec66468
23
+
24
+
21
25
  ## Installation
22
26
 
23
27
  ### Bundler
@@ -47,7 +47,9 @@ def triage_agent
47
47
  model: "gpt-4o-mini",
48
48
  name: "Triage Agent",
49
49
  instructions: method(:triage_instructions),
50
- functions: [method(:transfer_to_flight_modification), method(:transfer_to_lost_baggage)]
50
+ functions: [
51
+ method(:transfer_to_flight_modification),
52
+ method(:transfer_to_lost_baggage)]
51
53
  )
52
54
  end
53
55
 
@@ -103,7 +103,7 @@ module OpenAISwarm
103
103
  Util.debug_print(debug, "Tool #{name} not found in function map.")
104
104
  partial_response.messages << {
105
105
  role: 'tool',
106
- tool_call_id: tool_call.id,
106
+ tool_call_id: tool_call['id'],
107
107
  tool_name: name,
108
108
  content: "Error: Tool #{name} not found."
109
109
  }
@@ -1,3 +1,3 @@
1
1
  module OpenAISwarm
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
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.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grayson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-29 00:00:00.000000000 Z
11
+ date: 2024-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-openai