bitfab 0.78.0 → 0.78.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 +4 -4
- data/lib/bitfab/assertions.rb +16 -1
- data/lib/bitfab/version.rb +1 -1
- 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: cbb9ee2aa35e5b126aa994f2b71b4b4f1ece4722c0502b12e113feb85221510d
|
|
4
|
+
data.tar.gz: e860e799f9e06050f8f436faee27231ceacb11e1a9bf566350bee69e25a32192
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 28ba9358d462aa565fd432dac1bfc61864703ebb478acf5fc70968ff71431e1ee4904613a45a101fc5408140a3a13a04236e17bc0ef6e9488ba514862e6bf735
|
|
7
|
+
data.tar.gz: 41405236decaafb54498fc5cce63ac88cb8e9fee365e04f51092fded771ec718238d3616d52a249264bdfaaaf70062053c170a62fa0ec9460902a25816803245
|
data/lib/bitfab/assertions.rb
CHANGED
|
@@ -17,7 +17,9 @@ module Bitfab
|
|
|
17
17
|
# latest check of its text (the same hash a save returns), or nil when no
|
|
18
18
|
# check ever ran on it. Read a "pending" check from a save back here once
|
|
19
19
|
# it finishes, and save each of its "separateAssertions" as its own
|
|
20
|
-
# assertion.
|
|
20
|
+
# assertion. "codeHints" holds pointers for whoever writes code to check
|
|
21
|
+
# the assertion (span names, field paths, which span holds the answer), or
|
|
22
|
+
# nil when there are none; the LLM judge never reads them.
|
|
21
23
|
def get_assertions(trace_id)
|
|
22
24
|
response = @http_client.get(assertions_path(trace_id))
|
|
23
25
|
return response unless response.is_a?(Hash) && response["assertions"].is_a?(Array)
|
|
@@ -54,6 +56,19 @@ module Bitfab
|
|
|
54
56
|
# is off, and new code leaves the setting as it is. Removing the code turns
|
|
55
57
|
# it back on. Omit "codeOff" to keep the current setting.
|
|
56
58
|
#
|
|
59
|
+
# "codeHints" holds pointers for whoever writes code to check the
|
|
60
|
+
# assertion: span names, field paths, which span holds the answer. The LLM
|
|
61
|
+
# judge never reads them, so never put a requirement there: it belongs in
|
|
62
|
+
# "assertion". Omit "codeHints" to keep the current hints, or send an empty
|
|
63
|
+
# string or nil to clear them. Changing only the hints does not return the
|
|
64
|
+
# assertion to draft. Returned assertions carry "codeHints", nil when there
|
|
65
|
+
# are none.
|
|
66
|
+
#
|
|
67
|
+
# "passCriteria" and "failCriteria" are deprecated: write the assertion
|
|
68
|
+
# specific enough to need no criteria, and put where to look in
|
|
69
|
+
# "codeHints". They are still accepted, still returned, and the LLM judge
|
|
70
|
+
# still reads them on an assertion that has them.
|
|
71
|
+
#
|
|
57
72
|
# "kind" => "external" creates an assertion Bitfab never judges: your own
|
|
58
73
|
# system posts each verdict with VerdictsClient#save_external, and it takes
|
|
59
74
|
# no "code". Send it only on the save that creates the assertion; a
|
data/lib/bitfab/version.rb
CHANGED