lex-eval 0.2.3 → 0.2.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: 42e93ebdc972bbb947ca388705947747e0dc4050e7cb5483efc57471adfbca29
4
- data.tar.gz: f3a45e7d94bd7c4670f92f11a6e838e9a0913fd8823726436efa889c017afea3
3
+ metadata.gz: e519977bbdf83bbb365455d368008b572ec68a46b756e9e33aed4376122549fd
4
+ data.tar.gz: c91130345e012f2b585fa86b26f3578b0b111a2d95a76e21ec3c1316065a830c
5
5
  SHA512:
6
- metadata.gz: 9597e0c4cf93d703c40d83a80107a1c2271022710dadfc666ea3ce510d327eefceb33005e456b0af1064d77c5d7d88502d3476cf7554382fc0b7d18e07421539
7
- data.tar.gz: b8e858dbd043dfd71fe5d964c608d438ad34f56ba3da487fd3a58f8fd76ffd244f01266a0c72c892c1257ac87f0041a1a7e7aaf1fb09f6ff2ef48e53ab0c13f7
6
+ metadata.gz: 749867fd2b8004bbc96cf29192ad9d33302677e31019eb4c2b8c315320544b0b407b4272edd4a159effeec77c505f3e8fd7d94f4088b6b86695a2bf35d410f86
7
+ data.tar.gz: d0579690cba79a88f1b88bee339a571933cc4aa053ca6222ef9f7285ca7cf3b871e9d40c5dec2e56e48b46ef5a04edf4fb412cddc59405f6fb8cf06759065b49
@@ -45,7 +45,8 @@ module Legion
45
45
  return evaluate_regex_fallback(prompt) unless structured_available?
46
46
 
47
47
  result = Legion::LLM.structured(message: prompt, schema: JUDGE_SCHEMA,
48
- intent: { capability: :reasoning })
48
+ intent: { capability: :reasoning },
49
+ caller: { extension: 'lex-eval', operation: 'judge' })
49
50
  { score: result[:score], passed: result[:passed],
50
51
  explanation: result[:explanation], evidence: result[:evidence] || [] }
51
52
  rescue StandardError
@@ -53,7 +54,8 @@ module Legion
53
54
  end
54
55
 
55
56
  def evaluate_regex_fallback(prompt)
56
- response = Legion::LLM.chat(message: prompt, intent: { capability: :reasoning })
57
+ response = Legion::LLM.chat(message: prompt, intent: { capability: :reasoning },
58
+ caller: { extension: 'lex-eval', operation: 'judge' })
57
59
  score = extract_score(response.content)
58
60
  { score: score, explanation: response.content, passed: score >= threshold, evidence: [] }
59
61
  rescue StandardError => e
@@ -26,7 +26,8 @@ module Legion
26
26
  def review_output(input:, output:, review_prompt: nil, **)
27
27
  prompt = build_review_message(review_prompt || default_review_prompt, input, output)
28
28
  Legion::LLM.structured(message: prompt, schema: REVIEW_SCHEMA,
29
- intent: { capability: :reasoning })
29
+ intent: { capability: :reasoning },
30
+ caller: { extension: 'lex-eval', operation: 'agentic_review' })
30
31
  rescue StandardError => e
31
32
  { confidence: 0.0, recommendation: 'reject',
32
33
  issues: [], explanation: "review error: #{e.message}" }
@@ -3,7 +3,7 @@
3
3
  module Legion
4
4
  module Extensions
5
5
  module Eval
6
- VERSION = '0.2.3'
6
+ VERSION = '0.2.4'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lex-eval
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Iverson