luo 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/inspectionProfiles/Project_Default.xml +9 -0
- data/.idea/luo.iml +26 -1
- data/.rspec +1 -0
- data/Gemfile.lock +62 -1
- data/README.md +3 -0
- data/README.zh.md +9 -0
- data/exe/luo +7 -0
- data/lib/luo/agent.rb +45 -0
- data/lib/luo/agent_runner_base.rb +89 -0
- data/lib/luo/agent_runner_context.rb +33 -0
- data/lib/luo/aiui.rb +41 -0
- data/lib/luo/cli.rb +33 -0
- data/lib/luo/configurable.rb +14 -0
- data/lib/luo/http_client.rb +21 -0
- data/lib/luo/memory_history.rb +55 -0
- data/lib/luo/messages.rb +50 -0
- data/lib/luo/open_ai.rb +48 -0
- data/lib/luo/open_ai_agent_runner.rb +55 -0
- data/lib/luo/prompt_template.rb +39 -0
- data/lib/luo/prompts.rb +32 -0
- data/lib/luo/templates/luo_agent_input.md.erb +39 -0
- data/lib/luo/templates/luo_agent_system.md.erb +4 -0
- data/lib/luo/templates/luo_agent_tool_input.md.erb +10 -0
- data/lib/luo/templates/luo_commit.md.erb +2 -0
- data/lib/luo/templates/luo_xinghuo_agent_input.md.erb +10 -0
- data/lib/luo/templates/luo_xinghuo_agent_tool_input.md.erb +16 -0
- data/lib/luo/templates/prompt.demo.erb +1 -0
- data/lib/luo/version.rb +1 -1
- data/lib/luo/xinghuo.rb +50 -0
- data/lib/luo/xinghuo_agent_runner.rb +56 -0
- data/lib/luo.rb +18 -1
- data/luo.gemspec +9 -0
- data/sig/luo/agent.rbs +21 -0
- data/sig/luo/agent_runner_base.rbs +25 -0
- data/sig/luo/agent_runner_context.rbs +19 -0
- data/sig/luo/aiui.rbs +9 -0
- data/sig/luo/configurable.rbs +5 -0
- data/sig/luo/env.rbs +9 -0
- data/sig/luo/http_client.rbs +9 -0
- data/sig/luo/memory_history.rbs +18 -0
- data/sig/luo/messages.rbs +20 -0
- data/sig/luo/open_ai.rbs +11 -0
- data/sig/luo/prompt_template.rbs +18 -0
- data/sig/luo/prompts.rbs +15 -0
- data/sig/luo/xinghuo.rbs +9 -0
- metadata +186 -4
metadata
CHANGED
@@ -1,35 +1,217 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: luo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MJ
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
12
|
-
dependencies:
|
11
|
+
date: 2023-05-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: zeitwerk
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.6'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.6.8
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.6'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.6.8
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: dotenv
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '2.8'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 2.8.1
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '2.8'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 2.8.1
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: faraday
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '2.7'
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 2.7.4
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '2.7'
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 2.7.4
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: faraday-retry
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '2.1'
|
80
|
+
type: :runtime
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - "~>"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '2.1'
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: dry-schema
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '1.13'
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.13.1
|
97
|
+
type: :runtime
|
98
|
+
prerelease: false
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.13'
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 1.13.1
|
107
|
+
- !ruby/object:Gem::Dependency
|
108
|
+
name: dry-configurable
|
109
|
+
requirement: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - "~>"
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '1.0'
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 1.0.1
|
117
|
+
type: :runtime
|
118
|
+
prerelease: false
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '1.0'
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: 1.0.1
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: dry-cli
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - "~>"
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '1.0'
|
134
|
+
type: :runtime
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - "~>"
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '1.0'
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: rspec
|
143
|
+
requirement: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - "~>"
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '3.12'
|
148
|
+
type: :development
|
149
|
+
prerelease: false
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - "~>"
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '3.12'
|
13
155
|
description: 提供一套API快速开发大模型应用
|
14
156
|
email:
|
15
157
|
- tywf91@gmail.com
|
16
|
-
executables:
|
158
|
+
executables:
|
159
|
+
- luo
|
17
160
|
extensions: []
|
18
161
|
extra_rdoc_files: []
|
19
162
|
files:
|
20
163
|
- ".idea/.gitignore"
|
164
|
+
- ".idea/inspectionProfiles/Project_Default.xml"
|
21
165
|
- ".idea/luo.iml"
|
22
166
|
- ".idea/misc.xml"
|
23
167
|
- ".idea/modules.xml"
|
24
168
|
- ".idea/vcs.xml"
|
169
|
+
- ".rspec"
|
25
170
|
- Gemfile
|
26
171
|
- Gemfile.lock
|
27
172
|
- README.md
|
173
|
+
- README.zh.md
|
28
174
|
- Rakefile
|
175
|
+
- exe/luo
|
29
176
|
- lib/luo.rb
|
177
|
+
- lib/luo/agent.rb
|
178
|
+
- lib/luo/agent_runner_base.rb
|
179
|
+
- lib/luo/agent_runner_context.rb
|
180
|
+
- lib/luo/aiui.rb
|
181
|
+
- lib/luo/cli.rb
|
182
|
+
- lib/luo/configurable.rb
|
183
|
+
- lib/luo/http_client.rb
|
184
|
+
- lib/luo/memory_history.rb
|
185
|
+
- lib/luo/messages.rb
|
186
|
+
- lib/luo/open_ai.rb
|
187
|
+
- lib/luo/open_ai_agent_runner.rb
|
188
|
+
- lib/luo/prompt_template.rb
|
189
|
+
- lib/luo/prompts.rb
|
190
|
+
- lib/luo/templates/luo_agent_input.md.erb
|
191
|
+
- lib/luo/templates/luo_agent_system.md.erb
|
192
|
+
- lib/luo/templates/luo_agent_tool_input.md.erb
|
193
|
+
- lib/luo/templates/luo_commit.md.erb
|
194
|
+
- lib/luo/templates/luo_xinghuo_agent_input.md.erb
|
195
|
+
- lib/luo/templates/luo_xinghuo_agent_tool_input.md.erb
|
196
|
+
- lib/luo/templates/prompt.demo.erb
|
30
197
|
- lib/luo/version.rb
|
198
|
+
- lib/luo/xinghuo.rb
|
199
|
+
- lib/luo/xinghuo_agent_runner.rb
|
31
200
|
- luo.gemspec
|
32
201
|
- sig/luo.rbs
|
202
|
+
- sig/luo/agent.rbs
|
203
|
+
- sig/luo/agent_runner_base.rbs
|
204
|
+
- sig/luo/agent_runner_context.rbs
|
205
|
+
- sig/luo/aiui.rbs
|
206
|
+
- sig/luo/configurable.rbs
|
207
|
+
- sig/luo/env.rbs
|
208
|
+
- sig/luo/http_client.rbs
|
209
|
+
- sig/luo/memory_history.rbs
|
210
|
+
- sig/luo/messages.rbs
|
211
|
+
- sig/luo/open_ai.rbs
|
212
|
+
- sig/luo/prompt_template.rbs
|
213
|
+
- sig/luo/prompts.rbs
|
214
|
+
- sig/luo/xinghuo.rbs
|
33
215
|
homepage: https://github.com/mjason/luo
|
34
216
|
licenses: []
|
35
217
|
metadata:
|