legion-llm 0.6.14 → 0.6.15

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: 245c24519b2180958f4a214034612fc0635e53aa73ed54d84534319c8d2b6e6d
4
- data.tar.gz: b28143d46d537c40bd912b70a24a12add3ba0dfacd161415b0c824b4d70cb9eb
3
+ metadata.gz: 89101e37722ff5c0c96015b465b3231567b5636c796b49f94b4537fb2e9d0c9d
4
+ data.tar.gz: 383eb42f22009930320e9a952e165f1e0a8cb95530c4c2444e70fb30d2f804fe
5
5
  SHA512:
6
- metadata.gz: 73279e263a95b388adc0a7831b288291d9c05ef4a1957f95cdae4434ebf5401b93197b73ae0a9c3d2cfed637758c597133d16e1f2935b0df17b726d57c7ac356
7
- data.tar.gz: d5c3e9d471aaeb6cb3787e85fb15be6da95ed13d660c77414d75928f1720838bd7971d61d5b4b99539788c190bf2286bb4ce23feab82ceed0bf42037b8c8063e
6
+ metadata.gz: 501e4e9051fcaa678c85f47841bdbb2a97b4de433ce8a8be5767f11f4c2a1ccbebcedaa0a9962db82c92c49d209cf4dc71b9027cccc91ec5f8f458b537ee8437
7
+ data.tar.gz: f822fa3df241dc19568b70e02198a86404baecc4ab1238ef45f5ac7d6079821e7b52db924ac45db42d23df5f70c15285d576d85e581efd609f79f49fa41471bc
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.6.15] - 2026-04-03
6
+
7
+ ### Changed
8
+ - Knowledge capture step (writeback + local ingest) now runs async in a background thread instead of blocking the pipeline response
9
+
5
10
  ## [0.6.14] - 2026-04-02
6
11
 
7
12
  ### Fixed
@@ -11,21 +11,29 @@ module Legion
11
11
 
12
12
  def step_knowledge_capture
13
13
  response = current_response
14
+ request = @request
15
+ enrichments = @enrichments
16
+ local_enabled = local_capture_enabled?
14
17
 
15
- if defined?(Legion::Extensions::Apollo::Helpers::Writeback)
16
- Legion::Extensions::Apollo::Helpers::Writeback.evaluate_and_route(
17
- request: @request,
18
- response: response,
19
- enrichments: @enrichments
20
- )
21
- @timeline.record(
22
- category: :knowledge, key: 'knowledge:capture',
23
- direction: :outbound, detail: 'evaluated writeback to apollo',
24
- from: 'pipeline', to: 'apollo'
25
- )
18
+ Thread.new do
19
+ if defined?(Legion::Extensions::Apollo::Helpers::Writeback)
20
+ Legion::Extensions::Apollo::Helpers::Writeback.evaluate_and_route(
21
+ request: request,
22
+ response: response,
23
+ enrichments: enrichments
24
+ )
25
+ end
26
+
27
+ ingest_to_local(response: response) if local_enabled
28
+ rescue StandardError => e
29
+ handle_exception(e, level: :warn, operation: 'llm.pipeline.steps.knowledge_capture.async')
26
30
  end
27
31
 
28
- ingest_to_local(response: response) if local_capture_enabled?
32
+ @timeline.record(
33
+ category: :knowledge, key: 'knowledge:capture',
34
+ direction: :outbound, detail: 'knowledge capture dispatched async',
35
+ from: 'pipeline', to: 'apollo'
36
+ )
29
37
  rescue StandardError => e
30
38
  @warnings << "knowledge_capture error: #{e.message}"
31
39
  handle_exception(e, level: :warn, operation: 'llm.pipeline.steps.knowledge_capture')
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Legion
4
4
  module LLM
5
- VERSION = '0.6.14'
5
+ VERSION = '0.6.15'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legion-llm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.14
4
+ version: 0.6.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity