riffer 0.15.0 → 0.15.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89f3c7419e5a1cde4cf2a7ade73a224dc30ac5ae900041938eb165a31e568e81
4
- data.tar.gz: a07f353544bbdd3904092b34d2c4c03e1dadaad6374876f2ef3dc3767f3373d2
3
+ metadata.gz: 948e36451ba6cbe794054e91152030b3a5f1c89e4d81dddac69fe6624dad1a14
4
+ data.tar.gz: e3ec468daf389cac46ba6f5b027987f939ffc263611c27160a637b0525e84506
5
5
  SHA512:
6
- metadata.gz: 85e7b09d7491c6d670ac76f7fa981410fec26a04c8d73dfe7c4ca4a4f6b9a722c58ebbecfd9527cf3df30784e3c0ffa90098e3e9545d0bafdf3efd6997b0133d
7
- data.tar.gz: 5aaac2e175f09429587fc2e7d6878aaa97114ef5a9d8a038ca6647662f364ef1403d5b43a5731b4fbed263b1a08d7ba4a42a459d630b6bc9039ca09a40c0f513
6
+ metadata.gz: 060c70baee5ae31adbf8b5442be9c163c6c69931df310260005d836f9bfcddf53c17f2e705f194f37197d94345bf31449b992702bf457471262d689cbe806731
7
+ data.tar.gz: f10ebb1ee13561a3a197c1fb757fdc1a41dbacb04499c1160c26f116510b43fb4150b83ab17d77696713f36b896d0bbdc830f0cb0bc8266c28a5a469aab020c8
@@ -24,7 +24,8 @@ Adapters for LLM APIs. The base class uses a template-method pattern — `genera
24
24
  - `execute_generate(params)` — call the SDK and return the raw response
25
25
  - `execute_stream(params, yielder)` — call the streaming SDK, mapping events to the yielder
26
26
  - `extract_token_usage(response)` — pull token counts from the SDK response
27
- - `extract_assistant_message(response, token_usage)` — parse the SDK response into an `Assistant` message
27
+ - `extract_content(response)` — extract text content from the SDK response
28
+ - `extract_tool_calls(response)` — extract tool calls from the SDK response
28
29
 
29
30
  Providers are registered in `Riffer::Providers::Repository::REPO` with identifiers (e.g., `openai`, `amazon_bedrock`).
30
31
 
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.15.0"
2
+ ".": "0.15.1"
3
3
  }
data/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.15.1](https://github.com/janeapp/riffer/compare/riffer/v0.15.0...riffer/v0.15.1) (2026-02-25)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * address claude code review issues from PR [#140](https://github.com/janeapp/riffer/issues/140) ([#142](https://github.com/janeapp/riffer/issues/142)) ([f927c0c](https://github.com/janeapp/riffer/commit/f927c0c1fc472f859d54b1e1d2a02709f53ac973))
14
+
8
15
  ## [0.15.0](https://github.com/janeapp/riffer/compare/riffer/v0.14.0...riffer/v0.15.0) (2026-02-25)
9
16
 
10
17
 
data/lib/riffer/agent.rb CHANGED
@@ -322,7 +322,7 @@ class Riffer::Agent
322
322
 
323
323
  response = extract_final_response
324
324
 
325
- return build_response(response.content, modifications: all_modifications, structured_output: validate_structured_output(response))
325
+ return build_response(response&.content || "", modifications: all_modifications, structured_output: validate_structured_output(response))
326
326
  end
327
327
 
328
328
  # catch returns the thrown value when throw :riffer_interrupt fires;
@@ -330,7 +330,7 @@ class Riffer::Agent
330
330
  @interrupted = true
331
331
  response = extract_final_response
332
332
 
333
- build_response(response.content, modifications: all_modifications, interrupted: true, interrupt_reason: reason, structured_output: validate_structured_output(response))
333
+ build_response(response&.content || "", modifications: all_modifications, interrupted: true, interrupt_reason: reason, structured_output: validate_structured_output(response))
334
334
  end
335
335
 
336
336
  #: (Riffer::Messages::Base) -> void
@@ -35,7 +35,7 @@ class Riffer::Messages::Assistant < Riffer::Messages::Base
35
35
  :assistant
36
36
  end
37
37
 
38
- # @rbs () -> bool
38
+ #: () -> bool
39
39
  def structured_output?
40
40
  !@structured_output.nil?
41
41
  end
@@ -2,5 +2,5 @@
2
2
  # rbs_inline: enabled
3
3
 
4
4
  module Riffer
5
- VERSION = "0.15.0" #: String
5
+ VERSION = "0.15.1" #: String
6
6
  end
@@ -37,7 +37,7 @@ class Riffer::Messages::Assistant < Riffer::Messages::Base
37
37
  # : () -> Symbol
38
38
  def role: () -> Symbol
39
39
 
40
- # @rbs () -> bool
40
+ # : () -> bool
41
41
  def structured_output?: () -> bool
42
42
 
43
43
  # Converts the message to a hash.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riffer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Bottrall