langgraph_rb 0.1.3 → 0.1.4

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: 7629f7f9d5f4778ec860440939aa791d896fe0db95dc4d2b454aa06b4f6e6986
4
- data.tar.gz: 1e607cbc2ea8238f8d06228572e8fc782d61fc68a1999310e0180da1e490a36a
3
+ metadata.gz: f5649cc9cef30c96380dc2ccd9a5c576af8d3efd7e02552b03d81cb45360f408
4
+ data.tar.gz: 3c706c127ac2fbd5e9d8a0be723575228a21d9ff91672169dc66174cd8dba3c5
5
5
  SHA512:
6
- metadata.gz: 3bb81a69fbe5288500d87b7d166365f4fbebd6469c234ba3772e06e22ce685e1bd5aa07a649931e01b2799132071c69e9afb319781c5c0c5da7a7ba86424a197
7
- data.tar.gz: 83f0fc66a0309602c334be73ab07d3352cc537f82b5942c23983bc4b0ea343f4f50f81c5e1055b7cad32f5dbea69bc5a3654dd8a4229e71cbd3b13383c9faaf8
6
+ metadata.gz: 7dd32ea2d6c98ae356596cee6ca0d697802e7107649faf63c598606f9b708a68cd7c72e72d4ad5423d136a72d74c242108c28b670f6ab2aea2cf3a18925f35d4
7
+ data.tar.gz: d6a30010935f797cc6ebbe3767db38c8726029956192b57cd69304d6b0238d3dd0bdb1b32d7d9b348bbc8ee4469f8b1fe62b750386834c9cb7ce52980f1f25a4
@@ -52,7 +52,7 @@ class MockLLMClient
52
52
  end
53
53
 
54
54
  def log_llm_request(data)
55
- @observer&.each do |observer|
55
+ @observers&.each do |observer|
56
56
  observer.on_llm_request(data, @node_name)
57
57
  end
58
58
  end
@@ -11,7 +11,7 @@ module LangGraphRB
11
11
 
12
12
  # Execute the node with the given state and context
13
13
  # Returns either a Hash (state delta), Command, or Send object
14
- def call(state, context: nil)
14
+ def call(state, context: nil, observers: [])
15
15
  case @callable.arity
16
16
  when 0
17
17
  @callable.call
@@ -1,3 +1,3 @@
1
1
  module LangGraphRB
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: langgraph_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Toro