reeval-python 0.31.0__py3-none-any.whl → 0.33.0__py3-none-any.whl

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.
reeval_python/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """Python eval authoring API for reeval (*.eval.py)."""
2
2
 
3
- from reeval_python.context import AttemptContext, SyncAttemptContext
3
+ from reeval_python.context import SyncTrialContext, TrialContext
4
4
  from reeval_python.declare import evaluate, group, todo
5
5
  from reeval_python.environment import (
6
6
  DEFAULT_EGRESS_ALLOW,
@@ -18,50 +18,62 @@ from reeval_python.environment import (
18
18
  plugin,
19
19
  tart,
20
20
  )
21
- from reeval_python.errors import ReevalAssertionError, ReevalCallError
22
- from reeval_python.expect import Expectation, expect
21
+ from reeval_python.errors import EvalError, ReevalCallError
23
22
  from reeval_python.options import (
24
23
  BestOf,
24
+ BuiltinGrader,
25
+ Case,
25
26
  CaseOptions,
26
27
  EvalOptions,
27
28
  JudgeDefaults,
28
- JudgeOptions,
29
29
  )
30
- from reeval_python.types import BackgroundHandle, Diff, ExecResult, FileChange, Turn, Verdict
30
+ from reeval_python.target import Target, capability, regression
31
+ from reeval_python.types import (
32
+ BackgroundHandle,
33
+ Decision,
34
+ DecisionUsage,
35
+ Diff,
36
+ ExecResult,
37
+ FileChange,
38
+ Turn,
39
+ )
31
40
 
32
41
  __all__ = [
33
42
  "DEFAULT_EGRESS_ALLOW",
34
- "AttemptContext",
43
+ "TrialContext",
35
44
  "BackgroundHandle",
45
+ "Decision",
46
+ "DecisionUsage",
36
47
  "BestOf",
48
+ "BuiltinGrader",
37
49
  "Diff",
38
50
  "DockerSandbox",
39
51
  "Environment",
52
+ "Case",
53
+ "EvalError",
40
54
  "CaseOptions",
41
55
  "EvalOptions",
42
56
  "ExecResult",
43
- "Expectation",
44
57
  "FakeHarness",
45
58
  "FakeJudge",
46
59
  "FileChange",
47
60
  "JudgeDefaults",
48
- "JudgeOptions",
49
61
  "Plugin",
50
62
  "PluginBuild",
51
- "ReevalAssertionError",
52
63
  "ReevalCallError",
53
- "SyncAttemptContext",
64
+ "SyncTrialContext",
65
+ "Target",
54
66
  "TartSandbox",
55
67
  "Turn",
56
- "Verdict",
57
68
  "define_environment",
58
69
  "docker",
59
70
  "evaluate",
60
- "expect",
61
71
  "fake_harness",
72
+ "capability",
62
73
  "fake_judge",
63
74
  "group",
64
75
  "plugin",
76
+ "regression",
65
77
  "tart",
66
78
  "todo",
67
79
  ]