lex-apollo 0.4.0 → 0.4.2
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 +10 -0
- data/lib/legion/extensions/apollo/actors/entity_watchdog.rb +1 -1
- data/lib/legion/extensions/apollo/runners/entity_extractor.rb +2 -1
- data/lib/legion/extensions/apollo/runners/knowledge.rb +2 -1
- data/lib/legion/extensions/apollo/version.rb +1 -1
- data/spec/legion/extensions/apollo/actors/entity_watchdog_spec.rb +2 -2
- 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: 58044db4866170db60e7607b6dd9d5afcf56118c5d8373c180d9618480b59c82
|
|
4
|
+
data.tar.gz: c29bca810b4c41aed2093ee2ee64d12608d53a12d0401a47911b25ca2b9c3705
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2f72472b867e644ca58175c5fb7d3d0300a44e2e52fca0d75fd8000d2deae5ef524a29a93418f3be20d074037493d541bd2ddeb7c3b4c0cbdaf0869934147ec6
|
|
7
|
+
data.tar.gz: 0aeee79c5734195652092460791ea4089a8c4e71bcf141f33bb01c0c478dc4ddb44e26410e0d7607270f7fec172131687b58c794c0b9f60bad95a44c676257b2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.4.2] - 2026-03-24
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- fix `undefined method 'scan_and_ingest' for module EntityExtractor` in EntityWatchdog actor — self-contained actors must override `runner_class` to return `self.class` so the framework dispatches to the actor instance, not the runner module
|
|
7
|
+
|
|
8
|
+
## [0.4.1] - 2026-03-23
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- route llm calls through pipeline when available, add caller identity for attribution
|
|
12
|
+
|
|
3
13
|
## [0.4.0] - 2026-03-23
|
|
4
14
|
|
|
5
15
|
### Added
|
|
@@ -16,7 +16,7 @@ module Legion
|
|
|
16
16
|
TASK_LOG_LOOKBACK_SECONDS = 300
|
|
17
17
|
TASK_LOG_LIMIT = 50
|
|
18
18
|
|
|
19
|
-
def runner_class =
|
|
19
|
+
def runner_class = self.class
|
|
20
20
|
def runner_function = 'scan_and_ingest'
|
|
21
21
|
def time = 120
|
|
22
22
|
def run_now? = false
|
|
@@ -20,7 +20,8 @@ module Legion
|
|
|
20
20
|
messages: [
|
|
21
21
|
{ role: 'user', content: entity_extraction_prompt(text: text, entity_types: types) }
|
|
22
22
|
],
|
|
23
|
-
schema: entity_schema
|
|
23
|
+
schema: entity_schema,
|
|
24
|
+
caller: { extension: 'lex-apollo', runner: 'entity_extractor' }
|
|
24
25
|
)
|
|
25
26
|
|
|
26
27
|
raw_entities = result.dig(:data, :entities) || []
|
|
@@ -310,7 +310,8 @@ module Legion
|
|
|
310
310
|
{ role: 'system', content: 'Do these two statements contradict each other? Return JSON.' },
|
|
311
311
|
{ role: 'user', content: "A: #{content_a}\n\nB: #{content_b}" }
|
|
312
312
|
],
|
|
313
|
-
schema: { type: 'object', properties: { contradicts: { type: 'boolean' } } }
|
|
313
|
+
schema: { type: 'object', properties: { contradicts: { type: 'boolean' } } },
|
|
314
|
+
caller: { extension: 'lex-apollo', runner: 'knowledge' }
|
|
314
315
|
)
|
|
315
316
|
result[:data]&.dig(:contradicts) == true
|
|
316
317
|
rescue StandardError
|
|
@@ -23,8 +23,8 @@ RSpec.describe Legion::Extensions::Apollo::Actor::EntityWatchdog do
|
|
|
23
23
|
subject(:actor) { described_class.allocate }
|
|
24
24
|
|
|
25
25
|
describe 'actor configuration' do
|
|
26
|
-
it 'uses
|
|
27
|
-
expect(actor.runner_class).to eq(
|
|
26
|
+
it 'uses self.class as runner_class for self-contained dispatch' do
|
|
27
|
+
expect(actor.runner_class).to eq(described_class)
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
it 'runs scan_and_ingest function' do
|