luogu 0.2.0 → 0.2.2

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: 50079e5c23717d6caf07800b5878ba3b6398252caea1ff033175e16cbbe360b7
4
- data.tar.gz: 4fa6b63d827b806de779caa38e085126c0fd112b02baad9984fece843801d7f7
3
+ metadata.gz: 36995c054afd074896aed6b09044a2bcaa3389596718c5fd87043cfb7419fd93
4
+ data.tar.gz: ed7fbc4e583ecae24134a74cb4bb21ffe177d148fc5b75b7f0ea7f697e68e867
5
5
  SHA512:
6
- metadata.gz: eb4de03374038e36faa54427c667017e03f1ab6a1980b606e69d8975f28395adba2c6be9f3065b2d1a578f43c3c89385abe9ac429d888529f172734167bad0dd
7
- data.tar.gz: 18c4ee842a0e12b64cce016798a52f6efd9b89d97018e2b800c64226d743f042f866977418c550a0d2e2db7fa2bd041a3fe2729f28fbbc7345048611a96696a1
6
+ metadata.gz: d138fb4affaa66fcca67922163e8200e60754de318111a9c6ca1fb8688886f1b8e7a7a8669b3589931d5303cad57e99c7c596315d95cdacbb0c0e93d87350b3c
7
+ data.tar.gz: 82d3508621872fc20337d39ae3084115c16efb1e3d1fa6823ebeb205dc332c77cc6065fc12c350129440d1f47eb111f22dd40b9007bfef0a815fd5796e7f4636
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- luogu (0.2.0)
4
+ luogu (0.2.1)
5
5
  dotenv (~> 2.8, >= 2.8.1)
6
6
  dry-cli (~> 1.0)
7
7
  dry-configurable (~> 1.0, >= 1.0.1)
data/lib/luogu/agent.rb CHANGED
@@ -7,7 +7,7 @@ module Luogu
7
7
 
8
8
  class << self
9
9
  def desc(content)
10
- @_desc_ = content
10
+ @_desc_ = content.gsub(/\n/, "")
11
11
  end
12
12
 
13
13
  def input_desc(content)
@@ -24,7 +24,7 @@ module Luogu
24
24
  setting :history_limit, default: Application.config.openai.history_limit
25
25
  end
26
26
 
27
- attr_reader :request_params, :agents
27
+ attr_reader :request_params, :agents, :histories
28
28
  def initialize()
29
29
  @request_params = provider.parameter_model.call
30
30
  @histories = HistoryQueue.new provider.history_limit
data/lib/luogu/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Luogu
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luogu
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
  - MJ