ruby-openai-swarm 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/rspec.yml +27 -0
- data/.gitignore +32 -0
- data/.rspec +3 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +56 -0
- data/README.md +141 -0
- data/Rakefile +1 -0
- data/assets/logo-swarm.png +0 -0
- data/bin/console +14 -0
- data/bin/setup +14 -0
- data/examples/basic/README.md +0 -0
- data/examples/basic/agent_handoff.rb +41 -0
- data/examples/basic/bare_minimum.rb +27 -0
- data/examples/basic/context_variables.rb +67 -0
- data/examples/basic/function_calling.rb +32 -0
- data/examples/basic/simple_loop_no_helpers.rb +38 -0
- data/examples/triage_agent/README.md +34 -0
- data/examples/triage_agent/agents.rb +84 -0
- data/examples/triage_agent/main.rb +3 -0
- data/examples/weather_agent/README.md +0 -0
- data/examples/weather_agent/agents.rb +59 -0
- data/examples/weather_agent/run.rb +0 -0
- data/lib/ruby-openai-swarm/agent.rb +21 -0
- data/lib/ruby-openai-swarm/core.rb +269 -0
- data/lib/ruby-openai-swarm/function_descriptor.rb +10 -0
- data/lib/ruby-openai-swarm/repl.rb +90 -0
- data/lib/ruby-openai-swarm/response.rb +11 -0
- data/lib/ruby-openai-swarm/result.rb +11 -0
- data/lib/ruby-openai-swarm/util.rb +78 -0
- data/lib/ruby-openai-swarm/version.rb +4 -0
- data/lib/ruby-openai-swarm.rb +18 -0
- data/ruby-openai-swarm.gemspec +28 -0
- metadata +135 -0
metadata
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ruby-openai-swarm
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Grayson
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-10-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: ruby-openai
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '7.3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '7.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '13.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '13.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: Allows for creating swarms of AI agents that can call functions and interact
|
70
|
+
with each other
|
71
|
+
email:
|
72
|
+
- cgg5207@gmail.com
|
73
|
+
executables: []
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- ".github/workflows/rspec.yml"
|
78
|
+
- ".gitignore"
|
79
|
+
- ".rspec"
|
80
|
+
- Gemfile
|
81
|
+
- Gemfile.lock
|
82
|
+
- README.md
|
83
|
+
- Rakefile
|
84
|
+
- assets/logo-swarm.png
|
85
|
+
- bin/console
|
86
|
+
- bin/setup
|
87
|
+
- examples/basic/README.md
|
88
|
+
- examples/basic/agent_handoff.rb
|
89
|
+
- examples/basic/bare_minimum.rb
|
90
|
+
- examples/basic/context_variables.rb
|
91
|
+
- examples/basic/function_calling.rb
|
92
|
+
- examples/basic/simple_loop_no_helpers.rb
|
93
|
+
- examples/triage_agent/README.md
|
94
|
+
- examples/triage_agent/agents.rb
|
95
|
+
- examples/triage_agent/main.rb
|
96
|
+
- examples/weather_agent/README.md
|
97
|
+
- examples/weather_agent/agents.rb
|
98
|
+
- examples/weather_agent/run.rb
|
99
|
+
- lib/ruby-openai-swarm.rb
|
100
|
+
- lib/ruby-openai-swarm/agent.rb
|
101
|
+
- lib/ruby-openai-swarm/core.rb
|
102
|
+
- lib/ruby-openai-swarm/function_descriptor.rb
|
103
|
+
- lib/ruby-openai-swarm/repl.rb
|
104
|
+
- lib/ruby-openai-swarm/response.rb
|
105
|
+
- lib/ruby-openai-swarm/result.rb
|
106
|
+
- lib/ruby-openai-swarm/util.rb
|
107
|
+
- lib/ruby-openai-swarm/version.rb
|
108
|
+
- ruby-openai-swarm.gemspec
|
109
|
+
homepage: https://github.com/grayson/ruby-openai-swarm
|
110
|
+
licenses:
|
111
|
+
- MIT
|
112
|
+
metadata:
|
113
|
+
homepage_uri: https://github.com/grayson/ruby-openai-swarm
|
114
|
+
source_code_uri: https://github.com/grayson/ruby-openai-swarm
|
115
|
+
changelog_uri: https://github.com/grayson/ruby-openai-swarm/blob/main/CHANGELOG.md
|
116
|
+
post_install_message:
|
117
|
+
rdoc_options: []
|
118
|
+
require_paths:
|
119
|
+
- lib
|
120
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 2.6.0
|
125
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0'
|
130
|
+
requirements: []
|
131
|
+
rubygems_version: 3.1.4
|
132
|
+
signing_key:
|
133
|
+
specification_version: 4
|
134
|
+
summary: A Ruby implementation of OpenAI function calling swarm
|
135
|
+
test_files: []
|