axn-ruby_llm 0.1.0 → 0.1.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: 5c8aae7528ce13d8b34d96781ea472dec9059aaadd029176c8442da9a828c88c
4
- data.tar.gz: 5d45458a6c80b9679fa3a59c12e9674264891788bbd586b26fb589763403bd19
3
+ metadata.gz: f5a715c75d2ee173307de9cdcb25b067c011f1540cca7211f4f0c58b55df0089
4
+ data.tar.gz: 69c0f2fbc6edfcad836da1b64ff362d82868b2eeefa4352f7aa52db6b3830de7
5
5
  SHA512:
6
- metadata.gz: e42eb1a60816cf49c579ebe9343ffa53ff39eadb95a746cd624a4bc78a1209ef8f52f8c2f566566d8d47fc45b16da86161bb88e179814b77bd919c5af44b45af
7
- data.tar.gz: 12ca3f1d02a06c8c0e0d1120a9d4b600b37dde32fed917020cd50ff129958e9509cf4b87bb0037f79e50e227669bccec4ccf3bfb09bfb80ae371842ac66fd70a
6
+ metadata.gz: c2a483d82768f5dc38bdcbd1b013a40626418bbec481860d5b92066f5b847c100d725d41f34f9e57bf7686533f2d4f53999b8a6693bd5fc5064f566156dbeef3
7
+ data.tar.gz: 371df624c760aca167f3abc35965d10ffe3b6bf029851337c59a80c9b1dad1c6429b0eb58e6df024e5ecfedb65e53306f2afe81d1549e209a051e23f348121cb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.1] - 2026-06-11
4
+
5
+ - Use `mount_axn` pattern for `Axn::RubyLLM.ask` / `.ask!` / `.ask_async` shortcuts (via `Axn::Mountable`), replacing hand-written delegation. Requires axn `>= 0.1.0-alpha.4.3`.
6
+
3
7
  ## [0.1.0] - 2026-05-21
4
8
 
5
9
  Initial release.
data/README.md CHANGED
@@ -65,7 +65,6 @@ result = Axn::RubyLLM.ask(
65
65
  )
66
66
  ```
67
67
 
68
- The underlying action class is available as `Axn::RubyLLM::Ask` for cases where you need the full `Axn` interface (`call!`, `call_async`, instrumentation hooks, etc.).
69
68
 
70
69
  ### Structured output via schema
71
70
 
@@ -155,12 +154,12 @@ Axn::RubyLLM.configure do |c|
155
154
  end
156
155
  ```
157
156
 
158
- When disabled, `Ask` returns a **success** result with obvious stub content, so callers don't need per-callsite branching:
157
+ When disabled, `Axn::RubyLLM.ask` returns a **success** result with obvious stub content, so callers don't need per-callsite branching:
159
158
 
160
159
  | Field | Stubbed value |
161
160
  |---|---|
162
161
  | `response` | `"stubbed response value"` (plain) / `{ "stubbed" => true }` (`json: true` or `schema:`) |
163
- | `raw_message` | `Ask::StubMessage` Data instance with `.content`, `.input_tokens`, `.output_tokens`, `.model_id` |
162
+ | `raw_message` | Stub struct with `.content`, `.input_tokens`, `.output_tokens`, `.model_id` |
164
163
  | `input_tokens` / `output_tokens` | `0` |
165
164
  | `cost` | `0.0` |
166
165
  | `cost_breakdown` | `nil` |
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Axn
4
4
  module RubyLLM
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
data/lib/axn/ruby_llm.rb CHANGED
@@ -9,6 +9,10 @@ require_relative "ruby_llm/ask"
9
9
 
10
10
  module Axn
11
11
  module RubyLLM
12
+ include Axn::Mountable
13
+
14
+ mount_axn :ask, Ask
15
+
12
16
  class << self
13
17
  def configuration
14
18
  @configuration ||= Configuration.new
@@ -21,9 +25,6 @@ module Axn
21
25
  def reset_configuration!
22
26
  @configuration = nil
23
27
  end
24
-
25
- def ask(**) = Ask.call(**)
26
- def ask!(**) = Ask.call!(**)
27
28
  end
28
29
  end
29
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: axn-ruby_llm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kali Donovan
@@ -15,7 +15,7 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: 0.1.0.pre.alpha.4.2
18
+ version: 0.1.0.pre.alpha.4.3
19
19
  - - "<"
20
20
  - !ruby/object:Gem::Version
21
21
  version: 0.2.0
@@ -25,7 +25,7 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: 0.1.0.pre.alpha.4.2
28
+ version: 0.1.0.pre.alpha.4.3
29
29
  - - "<"
30
30
  - !ruby/object:Gem::Version
31
31
  version: 0.2.0