ruby-agents 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/agents.gemspec +8 -11
  4. data/lib/agents/version.rb +3 -0
  5. data/lib/agents.rb +22 -22
  6. metadata +30 -29
  7. data/lib/version.rb +0 -3
  8. /data/lib/{actions → agents/actions}/action.rb +0 -0
  9. /data/lib/{actions → agents/actions}/action_argument.rb +0 -0
  10. /data/lib/{actions → agents/actions}/action_example.rb +0 -0
  11. /data/lib/{actions → agents/actions}/ask_for_clarification_action.rb +0 -0
  12. /data/lib/{actions → agents/actions}/delegate_action.rb +0 -0
  13. /data/lib/agents/{agent.rb → agents/agent.rb} +0 -0
  14. /data/lib/agents/{calendar_gpt_agent.rb → agents/calendar_gpt_agent.rb} +0 -0
  15. /data/lib/agents/{categorizing_gpt_agent.rb → agents/categorizing_gpt_agent.rb} +0 -0
  16. /data/lib/agents/{dispatching_gpt_agent.rb → agents/dispatching_gpt_agent.rb} +0 -0
  17. /data/lib/agents/{echo_gpt_agent.rb → agents/echo_gpt_agent.rb} +0 -0
  18. /data/lib/agents/{information_retrieval_gpt_agent.rb → agents/information_retrieval_gpt_agent.rb} +0 -0
  19. /data/lib/agents/{promptless_gpt_agent.rb → agents/promptless_gpt_agent.rb} +0 -0
  20. /data/lib/agents/{todo_gpt_agent.rb → agents/todo_gpt_agent.rb} +0 -0
  21. /data/lib/agents/{unhandleable_request_agent.rb → agents/unhandleable_request_agent.rb} +0 -0
  22. /data/lib/{gpt_clients → agents/gpt_clients}/echo_gpt_client.rb +0 -0
  23. /data/lib/{gpt_clients → agents/gpt_clients}/gpt_client.rb +0 -0
  24. /data/lib/{gpt_clients → agents/gpt_clients}/open_ai_gpt_client.rb +0 -0
  25. /data/lib/{logger.rb → agents/logger.rb} +0 -0
  26. /data/lib/{requests → agents/requests}/request.rb +0 -0
  27. /data/lib/{responses → agents/responses}/gpt_response.rb +0 -0
  28. /data/lib/{responses → agents/responses}/response.rb +0 -0
  29. /data/lib/{responses → agents/responses}/unhandleable_request_response.rb +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cde24c35c39ae9054ab0158bc35ef7af3f891a0c657cbac684da6d9cb42f5744
4
- data.tar.gz: 65c4a74a3fbcbfd7cb88ddb51e06a98c17789a522699937fa4795fc3ac076be6
3
+ metadata.gz: dea36bf15988aaf769096d19041e9358317ff6a8dc277a418514e0d8e957f8f2
4
+ data.tar.gz: 183361122b78107dde2646db255871746c5b380ff2c7e483b762c22ccb17d21f
5
5
  SHA512:
6
- metadata.gz: a1162c7771022250f190ba3f40ebe0f9fc96b28f0e0033f77ec682b555c0c33f5bde4538c7258ba134ec6e9182d07a7af7bd725c0316b13ddd483da6db551e39
7
- data.tar.gz: 8390ffa7fe49f458579e37f12e46e5d1a32d773f8fb80656bda1b92c22474f52698eadf92f164e04302f77b5792bc541218adb7442614d39d06ed3eab22ac755
6
+ metadata.gz: d8194908ff998e405a9893e6a663e5b58bd82849230ea753ba04da498eca905539f7db5dd91cf8167093aec59f503685e83d8bc262255c18be3c66af7dbcbc12
7
+ data.tar.gz: 97f6f490797b0e1c488ce7fda4688893eed2702dcc6ab41f66ea1cef942192764c6457e17d8cec8b82191fdcbf2698a27dfc4f9af41a46edd11596a5f2ec4d8f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-agents (0.1.2)
4
+ ruby-agents (0.2.2)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/agents.gemspec CHANGED
@@ -1,25 +1,22 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  # frozen_string_literal: true
3
3
 
4
- require 'logger'
5
- require_relative 'lib/version'
4
+ require_relative 'lib/agents/version'
6
5
 
7
6
  Gem::Specification.new do |s|
8
- s.name = "ruby-agents"
7
+ s.name = "ruby-agents"
9
8
  s.version = Agents::VERSION
10
- s.platform = Gem::Platform::RUBY
11
-
12
9
  s.authors = ["Jeff McFadden"]
13
- s.date = "2023-11-05"
14
- s.description = "Put AI to Work."
15
10
  s.email = "55709+jeffmcfadden@users.noreply.github.com"
16
- s.files = `git ls-files`.split("\n")
17
11
 
12
+ s.summary = "Setup and organize requests between multiple AI agents."
18
13
  s.homepage = "https://github.com/jeffmcfadden/agents"
14
+ s.license = "MIT"
15
+ s.required_ruby_version = Gem::Requirement.new(">= 3.0.0")
16
+
17
+ s.files = `git ls-files`.split("\n")
19
18
  s.require_paths = ["lib"]
20
- s.rubygems_version = Agents::VERSION
21
- s.summary = "Setup and organize requests between multiple AI agents."
22
19
 
23
20
  s.add_development_dependency "tldr", ">= 0.9.5"
24
21
  s.add_development_dependency "ruby-openai", ">= 5.1"
25
- end
22
+ end
@@ -0,0 +1,3 @@
1
+ module Agents
2
+ VERSION = "0.2.2"
3
+ end
data/lib/agents.rb CHANGED
@@ -1,33 +1,33 @@
1
- require_relative 'logger'
2
- require_relative 'version'
1
+ require_relative 'agents/logger'
2
+ require_relative 'agents/version'
3
3
 
4
4
  require 'openai' rescue nil # OpenAI is optional
5
5
 
6
- require_relative 'gpt_clients/gpt_client'
7
- require_relative 'gpt_clients/echo_gpt_client'
6
+ require_relative 'agents/gpt_clients/gpt_client'
7
+ require_relative 'agents/gpt_clients/echo_gpt_client'
8
8
 
9
9
  if defined?(::OpenAI::Client)
10
- require_relative 'gpt_clients/open_ai_gpt_client'
10
+ require_relative 'agents/gpt_clients/open_ai_gpt_client'
11
11
  end
12
12
 
13
- require_relative 'agents/agent'
14
- require_relative 'agents/calendar_gpt_agent'
15
- require_relative 'agents/categorizing_gpt_agent'
16
- require_relative 'agents/dispatching_gpt_agent'
17
- require_relative 'agents/information_retrieval_gpt_agent'
18
- require_relative 'agents/promptless_gpt_agent'
19
- require_relative 'agents/todo_gpt_agent'
13
+ require_relative 'agents/agents/agent'
14
+ require_relative 'agents/agents/calendar_gpt_agent'
15
+ require_relative 'agents/agents/categorizing_gpt_agent'
16
+ require_relative 'agents/agents/dispatching_gpt_agent'
17
+ require_relative 'agents/agents/information_retrieval_gpt_agent'
18
+ require_relative 'agents/agents/promptless_gpt_agent'
19
+ require_relative 'agents/agents/todo_gpt_agent'
20
20
 
21
- require_relative 'agents/unhandleable_request_agent'
21
+ require_relative 'agents/agents/unhandleable_request_agent'
22
22
 
23
- require_relative 'requests/request'
23
+ require_relative 'agents/requests/request'
24
24
 
25
- require_relative 'responses/response'
26
- require_relative 'responses/gpt_response'
27
- require_relative 'responses/unhandleable_request_response'
25
+ require_relative 'agents/responses/response'
26
+ require_relative 'agents/responses/gpt_response'
27
+ require_relative 'agents/responses/unhandleable_request_response'
28
28
 
29
- require_relative 'actions/action'
30
- require_relative 'actions/action_argument'
31
- require_relative 'actions/action_example'
32
- require_relative 'actions/ask_for_clarification_action'
33
- require_relative 'actions/delegate_action'
29
+ require_relative 'agents/actions/action'
30
+ require_relative 'agents/actions/action_argument'
31
+ require_relative 'agents/actions/action_example'
32
+ require_relative 'agents/actions/ask_for_clarification_action'
33
+ require_relative 'agents/actions/delegate_action'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-agents
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff McFadden
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-05 00:00:00.000000000 Z
11
+ date: 2023-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tldr
@@ -38,7 +38,7 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '5.1'
41
- description: Put AI to Work.
41
+ description:
42
42
  email: 55709+jeffmcfadden@users.noreply.github.com
43
43
  executables: []
44
44
  extensions: []
@@ -50,35 +50,36 @@ files:
50
50
  - LICENSE
51
51
  - README.md
52
52
  - agents.gemspec
53
- - lib/actions/action.rb
54
- - lib/actions/action_argument.rb
55
- - lib/actions/action_example.rb
56
- - lib/actions/ask_for_clarification_action.rb
57
- - lib/actions/delegate_action.rb
58
53
  - lib/agents.rb
59
- - lib/agents/agent.rb
60
- - lib/agents/calendar_gpt_agent.rb
61
- - lib/agents/categorizing_gpt_agent.rb
62
- - lib/agents/dispatching_gpt_agent.rb
63
- - lib/agents/echo_gpt_agent.rb
64
- - lib/agents/information_retrieval_gpt_agent.rb
65
- - lib/agents/promptless_gpt_agent.rb
66
- - lib/agents/todo_gpt_agent.rb
67
- - lib/agents/unhandleable_request_agent.rb
68
- - lib/gpt_clients/echo_gpt_client.rb
69
- - lib/gpt_clients/gpt_client.rb
70
- - lib/gpt_clients/open_ai_gpt_client.rb
71
- - lib/logger.rb
72
- - lib/requests/request.rb
73
- - lib/responses/gpt_response.rb
74
- - lib/responses/response.rb
75
- - lib/responses/unhandleable_request_response.rb
76
- - lib/version.rb
54
+ - lib/agents/actions/action.rb
55
+ - lib/agents/actions/action_argument.rb
56
+ - lib/agents/actions/action_example.rb
57
+ - lib/agents/actions/ask_for_clarification_action.rb
58
+ - lib/agents/actions/delegate_action.rb
59
+ - lib/agents/agents/agent.rb
60
+ - lib/agents/agents/calendar_gpt_agent.rb
61
+ - lib/agents/agents/categorizing_gpt_agent.rb
62
+ - lib/agents/agents/dispatching_gpt_agent.rb
63
+ - lib/agents/agents/echo_gpt_agent.rb
64
+ - lib/agents/agents/information_retrieval_gpt_agent.rb
65
+ - lib/agents/agents/promptless_gpt_agent.rb
66
+ - lib/agents/agents/todo_gpt_agent.rb
67
+ - lib/agents/agents/unhandleable_request_agent.rb
68
+ - lib/agents/gpt_clients/echo_gpt_client.rb
69
+ - lib/agents/gpt_clients/gpt_client.rb
70
+ - lib/agents/gpt_clients/open_ai_gpt_client.rb
71
+ - lib/agents/logger.rb
72
+ - lib/agents/requests/request.rb
73
+ - lib/agents/responses/gpt_response.rb
74
+ - lib/agents/responses/response.rb
75
+ - lib/agents/responses/unhandleable_request_response.rb
76
+ - lib/agents/version.rb
77
77
  - test/test_actions.rb
78
78
  - test/test_openai.rb
79
79
  - test/test_with_children.rb
80
80
  homepage: https://github.com/jeffmcfadden/agents
81
- licenses: []
81
+ licenses:
82
+ - MIT
82
83
  metadata: {}
83
84
  post_install_message:
84
85
  rdoc_options: []
@@ -88,14 +89,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
89
  requirements:
89
90
  - - ">="
90
91
  - !ruby/object:Gem::Version
91
- version: '0'
92
+ version: 3.0.0
92
93
  required_rubygems_version: !ruby/object:Gem::Requirement
93
94
  requirements:
94
95
  - - ">="
95
96
  - !ruby/object:Gem::Version
96
97
  version: '0'
97
98
  requirements: []
98
- rubygems_version: 3.3.7
99
+ rubygems_version: 3.4.10
99
100
  signing_key:
100
101
  specification_version: 4
101
102
  summary: Setup and organize requests between multiple AI agents.
data/lib/version.rb DELETED
@@ -1,3 +0,0 @@
1
- module Agents
2
- VERSION = "0.2.0"
3
- end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes