ask-decisions 0.2.5 → 0.2.6
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 +12 -0
- data/lib/ask/decisions/agent_adapter.rb +1 -1
- data/lib/ask/decisions/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: 8c095716137f56aa0a2c6e3139a47a0f23049dd7df08d29b8a3ab537c7651a91
|
|
4
|
+
data.tar.gz: 61bc32fe79c0d496424a6d637c9c54abc1570ffa2e89d8b299b52547121230bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 60472b85e8f152fd6faf67b919466325782f76c226a7284147e42676d36d157d8e5af47e7fa32d1e4d80a4d51eda1eaa8175f6a3f545fa23c7b86546d633c9d3
|
|
7
|
+
data.tar.gz: dd460fe6aa16ade5306d0621a0c85deba188ad0b34c4df9e59c2c681b985808122a0708e0f7131f87f57449be95cbc4f6f6c297cccfab7f62dd2b35637ad12e8
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
6
|
|
|
7
|
+
## [0.2.6] - 2026-09-19
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **The output judge hook no longer crashes the first tool call of every
|
|
12
|
+
turn.** ask-agent hands after-tool hooks three arguments — the tool
|
|
13
|
+
call, the result, and the turn context — and the hook took two, raising
|
|
14
|
+
`ArgumentError` inside `run_after_tool` before any tool could answer.
|
|
15
|
+
A session rescued it into the generic "sorry" reply, so every chat turn
|
|
16
|
+
that reached for a tool returned nothing. The hook now accepts the
|
|
17
|
+
context it is given, and the hook test calls it the way ask-agent does.
|
|
18
|
+
|
|
7
19
|
## [0.2.5] - 2026-09-18
|
|
8
20
|
|
|
9
21
|
### Fixed
|
|
@@ -179,7 +179,7 @@ module Ask
|
|
|
179
179
|
# Build an after_tool hook that runs the OutputJudge.
|
|
180
180
|
def build_output_judge_hook
|
|
181
181
|
judge = @output_judge
|
|
182
|
-
lambda do |tool_call, result|
|
|
182
|
+
lambda do |tool_call, result, _context|
|
|
183
183
|
output = result.respond_to?(:output) ? result.output : result.to_s
|
|
184
184
|
args = tool_call.respond_to?(:arguments) ? tool_call.arguments : {}
|
|
185
185
|
|