ask-agent 0.40.9 → 0.40.11
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 +6 -0
- data/lib/ask/agent/chat.rb +7 -1
- data/lib/ask/agent/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 40714dd645556a442339b5aa4c24f5d0b10600c85d0b6cc74f7bb35c44a1799c
|
|
4
|
+
data.tar.gz: 534fc9e72e3ef20fe85e745f72a9b04f6cbfc6f714cb0427d2c091d98304185e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b2cdc7136459ef2daff1f6563ce5510682998b3631b5b5897217becc43bcf9155ba59722d4421cb7be1dfe0e572d5b76289c586c78c5234ec09359b1f3d78852
|
|
7
|
+
data.tar.gz: 99c5cec2f34d19a6a56ebdbccd617bde934e8ccbd4e8c3478dd786b338fc7165cab36671b077cfeb89db3828ce9ccfb238457679b57953032ff926499372ff62
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [0.40.10] — 2026-09-05
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
|
|
5
|
+
- **`Chat#ask` no longer appends an empty user message for blank input.** The guard `if message || attachments` passed for empty strings (truthy in Ruby), so tool-result follow-ups (`Session#run_follow_up` → `ask("")`) sent `{"role":"user","content":""}`. Strict OpenAI-compatible gateways (e.g. Command Code / LiteLLM) reject it with 400 "user message must have content". Blank messages are now skipped (whitespace-only included); attachments-only asks are unchanged.
|
|
6
|
+
|
|
1
7
|
## [0.40.0] — 2026-08-10
|
|
2
8
|
|
|
3
9
|
### Fixed
|
data/lib/ask/agent/chat.rb
CHANGED
|
@@ -55,7 +55,13 @@ module Ask
|
|
|
55
55
|
|
|
56
56
|
def ask(message = nil, attachments: nil, &block)
|
|
57
57
|
validate_attachment_modalities!(attachments)
|
|
58
|
-
|
|
58
|
+
# Blank messages carry no content and strict OpenAI-compatible
|
|
59
|
+
# gateways reject `{"role":"user","content":""}` with 400
|
|
60
|
+
# ("user message must have content"). Skip them so tool-result
|
|
61
|
+
# follow-ups (Session#run_follow_up → ask("")) call the LLM with
|
|
62
|
+
# the existing history only.
|
|
63
|
+
has_message = message && !message.to_s.strip.empty?
|
|
64
|
+
@messages << Ask::Message.new(role: :user, content: merge_attachments(message, attachments)) if has_message || attachments
|
|
59
65
|
|
|
60
66
|
stream = block_given?
|
|
61
67
|
tool_defs = @tools.map { |t| Ask::ToolDef.from_tool(t) }
|
data/lib/ask/agent/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ask-agent
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.40.
|
|
4
|
+
version: 0.40.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kaka Ruto
|
|
@@ -43,14 +43,14 @@ dependencies:
|
|
|
43
43
|
requirements:
|
|
44
44
|
- - ">="
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 0.13.
|
|
46
|
+
version: 0.13.2
|
|
47
47
|
type: :runtime
|
|
48
48
|
prerelease: false
|
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
51
|
- - ">="
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: 0.13.
|
|
53
|
+
version: 0.13.2
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
55
|
name: ask-tools
|
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|