girb 0.3.3 → 0.4.1
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 +4 -4
- data/CHANGELOG.md +19 -0
- data/README.md +1 -1
- data/README_ja.md +1 -1
- data/lib/girb/ai_client.rb +6 -5
- data/lib/girb/prompt_builder.rb +2 -2
- data/lib/girb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f244733846ba5bf59fd211ed2d84baf52b62cc3865e67b42601889d50f0754da
|
|
4
|
+
data.tar.gz: b25bb0834fa555712f5fd3ad5ad05ec3459e9fc0ba198f385aa6bebad1fa815c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e52e3443a0cc91f8b5a53ae7ac5c36c33fbe04a9e6eeb1450148a7aa54e321d46cba35b3ab2845ddcfff5cafa29c9bd2e1250adc19a028f2cb43d312b31ca8b5
|
|
7
|
+
data.tar.gz: 50fcdded0067980c0098c5e9cebc0b5d76c6a3a1f799f0d749cb4b2faf1433ba0f4a590908fd1c7f10e54b7d41252c0b9e08066fe9c3d35ea2a1da6d799fc9a6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.4.1] - 2026-02-12
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Fix AI always responding in Japanese regardless of user's language
|
|
8
|
+
- Replaced Japanese-only examples in system prompt with English examples
|
|
9
|
+
- Added explicit instruction to match user's language in tool comments
|
|
10
|
+
|
|
11
|
+
## [0.4.0] - 2026-02-12
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- Add web search support note for girb-gemini provider in README
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Always record assistant message in conversation history even when response text is empty
|
|
20
|
+
- Maintains user/assistant message alternation required by some providers (e.g. Gemini with web search)
|
|
21
|
+
|
|
3
22
|
## [0.3.3] - 2026-02-08
|
|
4
23
|
|
|
5
24
|
### Fixed
|
data/README.md
CHANGED
|
@@ -54,7 +54,7 @@ gem install girb girb-ruby_llm
|
|
|
54
54
|
|
|
55
55
|
Available provider gems:
|
|
56
56
|
- [girb-ruby_llm](https://github.com/rira100000000/girb-ruby_llm) - OpenAI, Anthropic, Gemini, Ollama, etc. (Recommended)
|
|
57
|
-
- [girb-gemini](https://github.com/rira100000000/girb-gemini) - Google Gemini only
|
|
57
|
+
- [girb-gemini](https://github.com/rira100000000/girb-gemini) - Google Gemini only (supports web search)
|
|
58
58
|
|
|
59
59
|
### API Keys
|
|
60
60
|
|
data/README_ja.md
CHANGED
|
@@ -52,7 +52,7 @@ gem install girb girb-ruby_llm
|
|
|
52
52
|
|
|
53
53
|
利用可能なプロバイダーgem:
|
|
54
54
|
- [girb-ruby_llm](https://github.com/rira100000000/girb-ruby_llm) - OpenAI、Anthropic、Gemini、Ollama等(推奨)
|
|
55
|
-
- [girb-gemini](https://github.com/rira100000000/girb-gemini) - Google Gemini
|
|
55
|
+
- [girb-gemini](https://github.com/rira100000000/girb-gemini) - Google Geminiのみ(web検索対応)
|
|
56
56
|
|
|
57
57
|
### APIキー
|
|
58
58
|
|
data/lib/girb/ai_client.rb
CHANGED
|
@@ -236,13 +236,14 @@ module Girb
|
|
|
236
236
|
accumulated_text << response.text
|
|
237
237
|
end
|
|
238
238
|
|
|
239
|
-
|
|
240
|
-
|
|
239
|
+
full_text = accumulated_text.any? ? accumulated_text.join("\n") : ""
|
|
240
|
+
# 空でも必ずアシスタントメッセージを記録(user/assistantの交互を維持)
|
|
241
|
+
ConversationHistory.add_assistant_message(full_text)
|
|
242
|
+
if full_text.empty?
|
|
243
|
+
puts "[girb] Warning: Empty or unexpected response" if Girb.configuration.debug
|
|
244
|
+
else
|
|
241
245
|
puts full_text
|
|
242
|
-
ConversationHistory.add_assistant_message(full_text)
|
|
243
246
|
record_ai_response(full_text)
|
|
244
|
-
elsif Girb.configuration.debug
|
|
245
|
-
puts "[girb] Warning: Empty or unexpected response"
|
|
246
247
|
end
|
|
247
248
|
break
|
|
248
249
|
end
|
data/lib/girb/prompt_builder.rb
CHANGED
|
@@ -25,8 +25,8 @@ module Girb
|
|
|
25
25
|
- Read patterns and intentions; handle hypothetical questions
|
|
26
26
|
- Code examples should use variables and objects from the current context and be directly executable
|
|
27
27
|
- When calling tools, ALWAYS include a brief one-line comment explaining what you're about to do
|
|
28
|
-
(e.g., "
|
|
29
|
-
This gives users real-time visibility into your investigation process.
|
|
28
|
+
(e.g., "Checking the source file", "Running the loop to track x values")
|
|
29
|
+
Use the same language as the user. This gives users real-time visibility into your investigation process.
|
|
30
30
|
|
|
31
31
|
## Debugging Support on Errors
|
|
32
32
|
When users encounter errors, actively support debugging.
|
data/lib/girb/version.rb
CHANGED