ruby_llm-modes 0.1.0
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 +7 -0
- data/CHANGELOG.md +60 -0
- data/LICENSE.txt +21 -0
- data/README.md +268 -0
- data/assets/one-configuration-vs-modes.svg +89 -0
- data/lib/ruby_llm/mode_agent.rb +11 -0
- data/lib/ruby_llm/modes/classifiers/chat.rb +107 -0
- data/lib/ruby_llm/modes/classifiers/judge.rb +112 -0
- data/lib/ruby_llm/modes/decision.rb +24 -0
- data/lib/ruby_llm/modes/errors.rb +21 -0
- data/lib/ruby_llm/modes/mode.rb +92 -0
- data/lib/ruby_llm/modes/registration.rb +17 -0
- data/lib/ruby_llm/modes/route.rb +50 -0
- data/lib/ruby_llm/modes/router.rb +499 -0
- data/lib/ruby_llm/modes/truncation.rb +41 -0
- data/lib/ruby_llm/modes/version.rb +7 -0
- data/lib/ruby_llm/modes.rb +23 -0
- data/ruby_llm-modes.gemspec +33 -0
- metadata +98 -0
metadata
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: ruby_llm-modes
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Andrey Samsonov
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: ruby_llm
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: 2.0.0
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '3'
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
requirements:
|
|
26
|
+
- - ">="
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: 2.0.0
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '3'
|
|
32
|
+
- !ruby/object:Gem::Dependency
|
|
33
|
+
name: schematist
|
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
|
35
|
+
requirements:
|
|
36
|
+
- - "~>"
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: '1.1'
|
|
39
|
+
type: :runtime
|
|
40
|
+
prerelease: false
|
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
42
|
+
requirements:
|
|
43
|
+
- - "~>"
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '1.1'
|
|
46
|
+
description: 'A mode is the configuration of one turn: a RubyLLM agent with a routing
|
|
47
|
+
description. Declare the modes, a fallback, and a classifier; before each answer
|
|
48
|
+
the router returns a Route that says which mode takes the turn, why, and what the
|
|
49
|
+
classifier actually said.'
|
|
50
|
+
email:
|
|
51
|
+
- me@samsonov.io
|
|
52
|
+
executables: []
|
|
53
|
+
extensions: []
|
|
54
|
+
extra_rdoc_files: []
|
|
55
|
+
files:
|
|
56
|
+
- CHANGELOG.md
|
|
57
|
+
- LICENSE.txt
|
|
58
|
+
- README.md
|
|
59
|
+
- assets/one-configuration-vs-modes.svg
|
|
60
|
+
- lib/ruby_llm/mode_agent.rb
|
|
61
|
+
- lib/ruby_llm/modes.rb
|
|
62
|
+
- lib/ruby_llm/modes/classifiers/chat.rb
|
|
63
|
+
- lib/ruby_llm/modes/classifiers/judge.rb
|
|
64
|
+
- lib/ruby_llm/modes/decision.rb
|
|
65
|
+
- lib/ruby_llm/modes/errors.rb
|
|
66
|
+
- lib/ruby_llm/modes/mode.rb
|
|
67
|
+
- lib/ruby_llm/modes/registration.rb
|
|
68
|
+
- lib/ruby_llm/modes/route.rb
|
|
69
|
+
- lib/ruby_llm/modes/router.rb
|
|
70
|
+
- lib/ruby_llm/modes/truncation.rb
|
|
71
|
+
- lib/ruby_llm/modes/version.rb
|
|
72
|
+
- ruby_llm-modes.gemspec
|
|
73
|
+
homepage: https://github.com/kryzhovnik/ruby_llm-modes
|
|
74
|
+
licenses:
|
|
75
|
+
- MIT
|
|
76
|
+
metadata:
|
|
77
|
+
homepage_uri: https://github.com/kryzhovnik/ruby_llm-modes
|
|
78
|
+
source_code_uri: https://github.com/kryzhovnik/ruby_llm-modes
|
|
79
|
+
changelog_uri: https://github.com/kryzhovnik/ruby_llm-modes/blob/main/CHANGELOG.md
|
|
80
|
+
rdoc_options: []
|
|
81
|
+
require_paths:
|
|
82
|
+
- lib
|
|
83
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
84
|
+
requirements:
|
|
85
|
+
- - ">="
|
|
86
|
+
- !ruby/object:Gem::Version
|
|
87
|
+
version: 3.2.0
|
|
88
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
|
+
requirements:
|
|
90
|
+
- - ">="
|
|
91
|
+
- !ruby/object:Gem::Version
|
|
92
|
+
version: '0'
|
|
93
|
+
requirements: []
|
|
94
|
+
rubygems_version: 3.6.9
|
|
95
|
+
specification_version: 4
|
|
96
|
+
summary: 'Chat modes for RubyLLM: one chat, one configuration per turn, picked by
|
|
97
|
+
a classifier'
|
|
98
|
+
test_files: []
|