agentforge-eval-geval 0.2.3__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.
- agentforge_eval_geval/__init__.py +31 -0
- agentforge_eval_geval/engine.py +189 -0
- agentforge_eval_geval/graders.py +121 -0
- agentforge_eval_geval/py.typed +0 -0
- agentforge_eval_geval/rubrics/correctness.yaml +19 -0
- agentforge_eval_geval/rubrics/faithfulness.yaml +21 -0
- agentforge_eval_geval/rubrics/groundedness.yaml +20 -0
- agentforge_eval_geval/rubrics/hallucination.yaml +22 -0
- agentforge_eval_geval/rubrics/helpfulness.yaml +17 -0
- agentforge_eval_geval/rubrics/relevance.yaml +14 -0
- agentforge_eval_geval-0.2.3.dist-info/METADATA +95 -0
- agentforge_eval_geval-0.2.3.dist-info/RECORD +15 -0
- agentforge_eval_geval-0.2.3.dist-info/WHEEL +4 -0
- agentforge_eval_geval-0.2.3.dist-info/entry_points.txt +8 -0
- agentforge_eval_geval-0.2.3.dist-info/licenses/LICENSE +202 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""LLM-judge evaluators (G-Eval) for AgentForge — feat-006.
|
|
2
|
+
|
|
3
|
+
Public surface:
|
|
4
|
+
- `GEval` — the underlying engine, parameterised by a judge `LLMClient`
|
|
5
|
+
and a rubric (dict or YAML file).
|
|
6
|
+
- Six named graders that wrap `GEval` with reference rubrics shipped
|
|
7
|
+
inside the package: `Correctness`, `Faithfulness`, `Groundedness`,
|
|
8
|
+
`Hallucination`, `Relevance`, `Helpfulness`.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
from agentforge_eval_geval.engine import GEval
|
|
14
|
+
from agentforge_eval_geval.graders import (
|
|
15
|
+
Correctness,
|
|
16
|
+
Faithfulness,
|
|
17
|
+
Groundedness,
|
|
18
|
+
Hallucination,
|
|
19
|
+
Helpfulness,
|
|
20
|
+
Relevance,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
__all__ = [
|
|
24
|
+
"Correctness",
|
|
25
|
+
"Faithfulness",
|
|
26
|
+
"GEval",
|
|
27
|
+
"Groundedness",
|
|
28
|
+
"Hallucination",
|
|
29
|
+
"Helpfulness",
|
|
30
|
+
"Relevance",
|
|
31
|
+
]
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"""`GEval` — generic LLM-judge engine driven by a rubric.
|
|
2
|
+
|
|
3
|
+
The rubric is a dict (or YAML file) declaring `criteria`, `scoring`,
|
|
4
|
+
and optional `examples`. The engine renders a system + user prompt
|
|
5
|
+
that asks the judge to return a JSON object with `score` (float in
|
|
6
|
+
`[0, 1]`) and `reasoning` (string). Output is parsed defensively —
|
|
7
|
+
malformed responses degrade to a `fail` `EvalResult` with the raw
|
|
8
|
+
text in `raw`.
|
|
9
|
+
|
|
10
|
+
The judge is any `LLMClient`. To keep costs bounded, this engine
|
|
11
|
+
declares a per-call `cost_estimate_usd` (default 0.01); the agent's
|
|
12
|
+
evaluator gate uses it for skip decisions. Actual cost from the
|
|
13
|
+
judge call is added to `BudgetPolicy.spent_usd` via the standard
|
|
14
|
+
`BudgetPolicy.commit(cost)` after the call completes (when a budget
|
|
15
|
+
is supplied via the evaluator context).
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
from __future__ import annotations
|
|
19
|
+
|
|
20
|
+
import contextlib
|
|
21
|
+
import json
|
|
22
|
+
import re
|
|
23
|
+
from pathlib import Path
|
|
24
|
+
from typing import Any, ClassVar
|
|
25
|
+
|
|
26
|
+
import yaml
|
|
27
|
+
from agentforge_core.contracts.evaluator import EvalResult, Evaluator
|
|
28
|
+
from agentforge_core.contracts.llm import LLMClient
|
|
29
|
+
from agentforge_core.production.budget import BudgetPolicy
|
|
30
|
+
from agentforge_core.values.messages import Message
|
|
31
|
+
|
|
32
|
+
_PASS_THRESHOLD = 0.5
|
|
33
|
+
"""Score >= this value is labelled `"pass"`; below is `"fail"`."""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class GEval(Evaluator):
|
|
37
|
+
"""LLM-judge grader. Subclass or use directly with a custom rubric."""
|
|
38
|
+
|
|
39
|
+
name: ClassVar[str] = "geval"
|
|
40
|
+
cost_estimate_usd: ClassVar[float] = 0.01
|
|
41
|
+
|
|
42
|
+
def __init__(
|
|
43
|
+
self,
|
|
44
|
+
*,
|
|
45
|
+
judge: LLMClient,
|
|
46
|
+
rubric: dict[str, Any],
|
|
47
|
+
name: str | None = None,
|
|
48
|
+
cost_estimate_usd: float | None = None,
|
|
49
|
+
) -> None:
|
|
50
|
+
if not isinstance(rubric, dict):
|
|
51
|
+
raise TypeError("rubric must be a dict")
|
|
52
|
+
criteria = rubric.get("criteria")
|
|
53
|
+
scoring = rubric.get("scoring")
|
|
54
|
+
if not isinstance(criteria, str) or not criteria.strip():
|
|
55
|
+
raise ValueError("rubric must include a non-empty 'criteria' string")
|
|
56
|
+
if not isinstance(scoring, str) or not scoring.strip():
|
|
57
|
+
raise ValueError("rubric must include a non-empty 'scoring' string")
|
|
58
|
+
self._judge = judge
|
|
59
|
+
self._rubric = dict(rubric)
|
|
60
|
+
# Per-instance name override shadows the ClassVar so subclasses
|
|
61
|
+
# / callers can rename without subclassing.
|
|
62
|
+
if name is not None:
|
|
63
|
+
self.name = name # type: ignore[misc]
|
|
64
|
+
if cost_estimate_usd is not None:
|
|
65
|
+
# Per-instance override so callers can declare a cheaper rubric.
|
|
66
|
+
self.cost_estimate_usd = cost_estimate_usd # type: ignore[misc]
|
|
67
|
+
|
|
68
|
+
@classmethod
|
|
69
|
+
def from_rubric_file(
|
|
70
|
+
cls,
|
|
71
|
+
path: str | Path,
|
|
72
|
+
*,
|
|
73
|
+
judge: LLMClient,
|
|
74
|
+
name: str | None = None,
|
|
75
|
+
) -> GEval:
|
|
76
|
+
"""Load a rubric YAML and construct a GEval grader."""
|
|
77
|
+
path = Path(path)
|
|
78
|
+
if not path.exists():
|
|
79
|
+
raise FileNotFoundError(f"rubric file not found: {path}")
|
|
80
|
+
with path.open(encoding="utf-8") as fh:
|
|
81
|
+
rubric = yaml.safe_load(fh)
|
|
82
|
+
if not isinstance(rubric, dict):
|
|
83
|
+
raise TypeError(f"rubric file {path} must contain a YAML mapping")
|
|
84
|
+
return cls(judge=judge, rubric=rubric, name=name or path.stem)
|
|
85
|
+
|
|
86
|
+
async def evaluate(self, finding: Any, context: dict[str, Any]) -> EvalResult:
|
|
87
|
+
output = finding.output if hasattr(finding, "output") else finding
|
|
88
|
+
task = context.get("task", "")
|
|
89
|
+
budget = context.get("budget")
|
|
90
|
+
|
|
91
|
+
system, user = self._build_prompt(output=output, task=task, context=context)
|
|
92
|
+
messages = [Message(role="user", content=user)]
|
|
93
|
+
try:
|
|
94
|
+
response = await self._judge.call(system=system, messages=messages)
|
|
95
|
+
except Exception as exc:
|
|
96
|
+
return EvalResult(
|
|
97
|
+
evaluator=self.name,
|
|
98
|
+
score=0.0,
|
|
99
|
+
label="fail",
|
|
100
|
+
reasoning=f"judge call raised {type(exc).__name__}: {exc}",
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
if isinstance(budget, BudgetPolicy) and response.cost_usd > 0:
|
|
104
|
+
# Commit failure (e.g. would push over cap) shouldn't void
|
|
105
|
+
# the result — the score is still informative.
|
|
106
|
+
with contextlib.suppress(Exception):
|
|
107
|
+
budget.commit(response.cost_usd)
|
|
108
|
+
|
|
109
|
+
score, reasoning = self._parse_response(response.content)
|
|
110
|
+
return EvalResult(
|
|
111
|
+
evaluator=self.name,
|
|
112
|
+
score=score,
|
|
113
|
+
label="pass" if score >= _PASS_THRESHOLD else "fail",
|
|
114
|
+
reasoning=reasoning,
|
|
115
|
+
raw={
|
|
116
|
+
"judge_cost_usd": response.cost_usd,
|
|
117
|
+
"judge_tokens_in": response.usage.input_tokens,
|
|
118
|
+
"judge_tokens_out": response.usage.output_tokens,
|
|
119
|
+
"raw_text": response.content,
|
|
120
|
+
},
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
def _build_prompt(self, *, output: Any, task: str, context: dict[str, Any]) -> tuple[str, str]:
|
|
124
|
+
"""Render the system + user prompts from the rubric.
|
|
125
|
+
|
|
126
|
+
Available rubric fields:
|
|
127
|
+
- `criteria`: what to judge
|
|
128
|
+
- `scoring`: how to score
|
|
129
|
+
- `examples`: optional list of {output, score, reasoning}
|
|
130
|
+
- `inputs`: optional list of context keys to inject
|
|
131
|
+
(e.g. ["expected", "retrieved_docs"]). The values are
|
|
132
|
+
pulled from the eval `context` dict and rendered.
|
|
133
|
+
"""
|
|
134
|
+
criteria = self._rubric["criteria"]
|
|
135
|
+
scoring = self._rubric["scoring"]
|
|
136
|
+
|
|
137
|
+
system = (
|
|
138
|
+
"You are an expert evaluator. Score the provided output against the rubric below.\n"
|
|
139
|
+
f"Criteria: {criteria}\n"
|
|
140
|
+
f"Scoring: {scoring}\n"
|
|
141
|
+
"Respond ONLY with a JSON object: "
|
|
142
|
+
'{"score": <float 0.0-1.0>, "reasoning": "<one-sentence explanation>"}.'
|
|
143
|
+
)
|
|
144
|
+
|
|
145
|
+
parts = [f"Task: {task}", f"Output:\n{output}"]
|
|
146
|
+
inputs = self._rubric.get("inputs") or []
|
|
147
|
+
for key in inputs:
|
|
148
|
+
value = context.get(key)
|
|
149
|
+
if value is not None:
|
|
150
|
+
parts.append(f"{key}:\n{value}")
|
|
151
|
+
examples = self._rubric.get("examples") or []
|
|
152
|
+
if examples:
|
|
153
|
+
parts.append("Examples:")
|
|
154
|
+
parts.extend(
|
|
155
|
+
f" - output: {ex.get('output')!r}\n"
|
|
156
|
+
f" score: {ex.get('score')}\n"
|
|
157
|
+
f" reasoning: {ex.get('reasoning')}"
|
|
158
|
+
for ex in examples
|
|
159
|
+
)
|
|
160
|
+
return system, "\n\n".join(parts)
|
|
161
|
+
|
|
162
|
+
@staticmethod
|
|
163
|
+
def _parse_response(text: str) -> tuple[float, str]:
|
|
164
|
+
"""Extract `score` + `reasoning` from the judge's JSON response.
|
|
165
|
+
|
|
166
|
+
Defensive: if the judge returned text wrapped in markdown
|
|
167
|
+
fences or with chatter around the JSON, we extract the first
|
|
168
|
+
`{...}` block. If parsing fails entirely, return `(0.0,
|
|
169
|
+
"judge returned unparseable response: ...")`.
|
|
170
|
+
"""
|
|
171
|
+
match = re.search(r"\{.*\}", text, flags=re.DOTALL)
|
|
172
|
+
if match is None:
|
|
173
|
+
return 0.0, f"judge returned no JSON: {text[:200]}"
|
|
174
|
+
try:
|
|
175
|
+
payload = json.loads(match.group(0))
|
|
176
|
+
except json.JSONDecodeError as exc:
|
|
177
|
+
return 0.0, f"judge returned unparseable JSON: {exc.msg}"
|
|
178
|
+
|
|
179
|
+
score = payload.get("score")
|
|
180
|
+
if not isinstance(score, (int, float)):
|
|
181
|
+
return 0.0, f"judge response missing numeric 'score': {payload}"
|
|
182
|
+
score = max(0.0, min(1.0, float(score)))
|
|
183
|
+
reasoning = payload.get("reasoning")
|
|
184
|
+
if not isinstance(reasoning, str):
|
|
185
|
+
reasoning = ""
|
|
186
|
+
return score, reasoning
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
__all__ = ["GEval"]
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"""Six named LLM-judge graders backed by `GEval`.
|
|
2
|
+
|
|
3
|
+
Each grader loads its rubric from the package-shipped YAML files in
|
|
4
|
+
`rubrics/`. The judge `LLMClient` is required at construction;
|
|
5
|
+
optional kwargs let callers point the rubric at specific context
|
|
6
|
+
keys (e.g. `ground_truth_field`, `sources_field`).
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
from typing import Any, ClassVar
|
|
13
|
+
|
|
14
|
+
import yaml
|
|
15
|
+
from agentforge_core.contracts.llm import LLMClient
|
|
16
|
+
|
|
17
|
+
from agentforge_eval_geval.engine import GEval
|
|
18
|
+
|
|
19
|
+
_RUBRICS_DIR = Path(__file__).parent / "rubrics"
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def _load_rubric(name: str) -> dict[str, Any]:
|
|
23
|
+
path = _RUBRICS_DIR / f"{name}.yaml"
|
|
24
|
+
if not path.exists():
|
|
25
|
+
raise FileNotFoundError(f"shipped rubric {name!r} not found at {path}")
|
|
26
|
+
with path.open(encoding="utf-8") as fh:
|
|
27
|
+
rubric = yaml.safe_load(fh)
|
|
28
|
+
if not isinstance(rubric, dict):
|
|
29
|
+
raise TypeError(f"shipped rubric {path} is malformed")
|
|
30
|
+
return rubric
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class _NamedGEval(GEval):
|
|
34
|
+
"""Internal base — subclasses pin the rubric name."""
|
|
35
|
+
|
|
36
|
+
rubric_name: ClassVar[str]
|
|
37
|
+
|
|
38
|
+
def __init__(self, *, judge: LLMClient, **rubric_overrides: Any) -> None:
|
|
39
|
+
rubric = _load_rubric(self.rubric_name)
|
|
40
|
+
# Allow callers to override the rubric's `inputs` (which
|
|
41
|
+
# context keys to pull) — common for `Correctness`
|
|
42
|
+
# (ground_truth_field) and `Faithfulness` (sources_field).
|
|
43
|
+
if rubric_overrides:
|
|
44
|
+
inputs = list(rubric.get("inputs") or [])
|
|
45
|
+
for value in rubric_overrides.values():
|
|
46
|
+
if isinstance(value, str) and value not in inputs:
|
|
47
|
+
inputs.append(value)
|
|
48
|
+
rubric["inputs"] = inputs
|
|
49
|
+
super().__init__(judge=judge, rubric=rubric, name=self.rubric_name)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class Correctness(_NamedGEval):
|
|
53
|
+
rubric_name: ClassVar[str] = "correctness"
|
|
54
|
+
|
|
55
|
+
def __init__(
|
|
56
|
+
self,
|
|
57
|
+
*,
|
|
58
|
+
judge: LLMClient,
|
|
59
|
+
ground_truth_field: str = "expected",
|
|
60
|
+
) -> None:
|
|
61
|
+
super().__init__(judge=judge, ground_truth_field=ground_truth_field)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class Faithfulness(_NamedGEval):
|
|
65
|
+
rubric_name: ClassVar[str] = "faithfulness"
|
|
66
|
+
|
|
67
|
+
def __init__(
|
|
68
|
+
self,
|
|
69
|
+
*,
|
|
70
|
+
judge: LLMClient,
|
|
71
|
+
sources_field: str = "retrieved_docs",
|
|
72
|
+
) -> None:
|
|
73
|
+
super().__init__(judge=judge, sources_field=sources_field)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
class Groundedness(_NamedGEval):
|
|
77
|
+
rubric_name: ClassVar[str] = "groundedness"
|
|
78
|
+
|
|
79
|
+
def __init__(
|
|
80
|
+
self,
|
|
81
|
+
*,
|
|
82
|
+
judge: LLMClient,
|
|
83
|
+
sources_field: str = "retrieved_docs",
|
|
84
|
+
) -> None:
|
|
85
|
+
super().__init__(judge=judge, sources_field=sources_field)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
class Hallucination(_NamedGEval):
|
|
89
|
+
rubric_name: ClassVar[str] = "hallucination"
|
|
90
|
+
|
|
91
|
+
def __init__(
|
|
92
|
+
self,
|
|
93
|
+
*,
|
|
94
|
+
judge: LLMClient,
|
|
95
|
+
sources_field: str = "retrieved_docs",
|
|
96
|
+
) -> None:
|
|
97
|
+
super().__init__(judge=judge, sources_field=sources_field)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
class Relevance(_NamedGEval):
|
|
101
|
+
rubric_name: ClassVar[str] = "relevance"
|
|
102
|
+
|
|
103
|
+
def __init__(self, *, judge: LLMClient) -> None:
|
|
104
|
+
super().__init__(judge=judge)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
class Helpfulness(_NamedGEval):
|
|
108
|
+
rubric_name: ClassVar[str] = "helpfulness"
|
|
109
|
+
|
|
110
|
+
def __init__(self, *, judge: LLMClient) -> None:
|
|
111
|
+
super().__init__(judge=judge)
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
__all__ = [
|
|
115
|
+
"Correctness",
|
|
116
|
+
"Faithfulness",
|
|
117
|
+
"Groundedness",
|
|
118
|
+
"Hallucination",
|
|
119
|
+
"Helpfulness",
|
|
120
|
+
"Relevance",
|
|
121
|
+
]
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Correctness rubric — "does the output match the ground-truth answer?"
|
|
2
|
+
#
|
|
3
|
+
# `inputs` lists context keys the engine should render alongside the
|
|
4
|
+
# output (e.g. `expected` for the ground-truth field). Pin via the
|
|
5
|
+
# `Correctness(ground_truth_field=...)` kwarg.
|
|
6
|
+
|
|
7
|
+
version: 1
|
|
8
|
+
criteria: |
|
|
9
|
+
Compare the output to the ground-truth answer. The output is
|
|
10
|
+
correct if it conveys the same facts as the ground truth, even
|
|
11
|
+
when the wording differs. It is incorrect when it contradicts the
|
|
12
|
+
ground truth, omits a key fact, or adds an unsupported claim.
|
|
13
|
+
scoring: |
|
|
14
|
+
1.0 — output is fully correct (matches every key fact, no errors).
|
|
15
|
+
0.7 — minor wording differences but core facts match.
|
|
16
|
+
0.3 — partial match (some facts correct, others wrong or missing).
|
|
17
|
+
0.0 — output contradicts the ground truth or fails to answer.
|
|
18
|
+
inputs:
|
|
19
|
+
- expected
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Faithfulness rubric — "is the output supported by the retrieved evidence?"
|
|
2
|
+
#
|
|
3
|
+
# Distinct from groundedness: faithfulness allows additional accurate
|
|
4
|
+
# content that wasn't in the retrieved sources, as long as nothing
|
|
5
|
+
# the output asserts contradicts what was retrieved.
|
|
6
|
+
|
|
7
|
+
version: 1
|
|
8
|
+
criteria: |
|
|
9
|
+
Determine whether every factual claim in the output is supported
|
|
10
|
+
by the retrieved sources. A claim is "supported" when the sources
|
|
11
|
+
directly state it or clearly imply it. A claim is "unsupported"
|
|
12
|
+
when nothing in the sources backs it. Unsupported claims may
|
|
13
|
+
still be factually correct in the world — that's groundedness's
|
|
14
|
+
concern — but they fail faithfulness.
|
|
15
|
+
scoring: |
|
|
16
|
+
1.0 — every claim is supported by the retrieved sources.
|
|
17
|
+
0.7 — most claims supported; one minor unsupported claim.
|
|
18
|
+
0.3 — multiple unsupported claims, or one major unsupported claim.
|
|
19
|
+
0.0 — output contradicts the sources or invents claims wholesale.
|
|
20
|
+
inputs:
|
|
21
|
+
- retrieved_docs
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Groundedness rubric — "does the output stay inside the provided sources?"
|
|
2
|
+
#
|
|
3
|
+
# Stricter than faithfulness: groundedness penalises any content not
|
|
4
|
+
# present in the retrieved sources, regardless of whether the content
|
|
5
|
+
# happens to be factually correct in the wider world.
|
|
6
|
+
|
|
7
|
+
version: 1
|
|
8
|
+
criteria: |
|
|
9
|
+
Examine the output for any content (facts, claims, examples) not
|
|
10
|
+
derivable from the retrieved sources. Groundedness is violated when
|
|
11
|
+
the output introduces facts that aren't in the sources, even if
|
|
12
|
+
those facts are correct outside this context. The point is whether
|
|
13
|
+
the agent stayed inside the supplied evidence.
|
|
14
|
+
scoring: |
|
|
15
|
+
1.0 — every sentence is traceable to the retrieved sources.
|
|
16
|
+
0.7 — minor off-source aside (e.g. one parenthetical fact).
|
|
17
|
+
0.3 — substantial content not derivable from the sources.
|
|
18
|
+
0.0 — most of the output is off-source.
|
|
19
|
+
inputs:
|
|
20
|
+
- retrieved_docs
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Hallucination rubric — combined faithfulness + groundedness risk.
|
|
2
|
+
#
|
|
3
|
+
# Single score reflecting the overall risk that the output contains
|
|
4
|
+
# content not derivable from the supplied inputs. Lower-cost
|
|
5
|
+
# alternative to running faithfulness + groundedness separately when
|
|
6
|
+
# you only need one number.
|
|
7
|
+
|
|
8
|
+
version: 1
|
|
9
|
+
criteria: |
|
|
10
|
+
Score the risk that the output contains hallucinated content —
|
|
11
|
+
claims that are neither stated in nor cleanly implied by the
|
|
12
|
+
retrieved sources, the task, or any other supplied context. Flag
|
|
13
|
+
fabricated entities, fabricated quotes, made-up citations,
|
|
14
|
+
unsupported numeric claims, and invented procedures.
|
|
15
|
+
scoring: |
|
|
16
|
+
1.0 — no hallucination detected (output stays within supplied evidence).
|
|
17
|
+
0.7 — minor risk (one borderline claim that could be supported).
|
|
18
|
+
0.3 — clear hallucination (named entities or specific claims
|
|
19
|
+
without source backing).
|
|
20
|
+
0.0 — multiple obvious hallucinations or fabricated citations.
|
|
21
|
+
inputs:
|
|
22
|
+
- retrieved_docs
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Helpfulness rubric — "is the output useful to the asker?"
|
|
2
|
+
|
|
3
|
+
version: 1
|
|
4
|
+
criteria: |
|
|
5
|
+
Judge whether the output is actually useful. A helpful output is
|
|
6
|
+
complete (covers what the task asks for), specific (gives concrete
|
|
7
|
+
details vs vague generalities), well-structured (organised so the
|
|
8
|
+
reader can act on it), and direct (avoids hedging when the task
|
|
9
|
+
has a clear answer).
|
|
10
|
+
scoring: |
|
|
11
|
+
1.0 — output is complete, specific, well-structured, actionable.
|
|
12
|
+
0.7 — output is useful but has minor gaps (one missing detail or
|
|
13
|
+
slightly weak structure).
|
|
14
|
+
0.3 — output is technically responsive but vague, padded, or
|
|
15
|
+
missing essential information.
|
|
16
|
+
0.0 — output is unusable — wrong format, evasive, or fails to
|
|
17
|
+
provide actionable content.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Relevance rubric — "does the output address the task?"
|
|
2
|
+
|
|
3
|
+
version: 1
|
|
4
|
+
criteria: |
|
|
5
|
+
Assess whether the output directly addresses the task. Relevant
|
|
6
|
+
outputs answer the question asked, focus on the specific request,
|
|
7
|
+
and avoid drifting into unrelated tangents. An output may be
|
|
8
|
+
factually correct yet irrelevant if it answers a different
|
|
9
|
+
question than the one asked.
|
|
10
|
+
scoring: |
|
|
11
|
+
1.0 — output fully addresses every part of the task.
|
|
12
|
+
0.7 — output addresses the task but includes some tangential content.
|
|
13
|
+
0.3 — output partially addresses the task or drifts off-topic.
|
|
14
|
+
0.0 — output ignores the task or answers a different question.
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: agentforge-eval-geval
|
|
3
|
+
Version: 0.2.3
|
|
4
|
+
Summary: LLM-judge evaluators (G-Eval) for AgentForge
|
|
5
|
+
Project-URL: Homepage, https://github.com/Scaffoldic/agentforge-py
|
|
6
|
+
Project-URL: Repository, https://github.com/Scaffoldic/agentforge-py
|
|
7
|
+
Project-URL: Documentation, https://github.com/Scaffoldic/agentforge-py
|
|
8
|
+
Project-URL: Changelog, https://github.com/Scaffoldic/agentforge-py/blob/main/CHANGELOG.md
|
|
9
|
+
Project-URL: Issues, https://github.com/Scaffoldic/agentforge-py/issues
|
|
10
|
+
Author: The AgentForge Authors
|
|
11
|
+
License-Expression: Apache-2.0
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Keywords: agent,ai,evaluation,geval,llm-judge
|
|
14
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
+
Classifier: Topic :: Software Development :: Testing
|
|
21
|
+
Classifier: Typing :: Typed
|
|
22
|
+
Requires-Python: >=3.13
|
|
23
|
+
Requires-Dist: agentforge-core~=0.2.3
|
|
24
|
+
Requires-Dist: pyyaml>=6.0
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
|
|
27
|
+
# agentforge-eval-geval
|
|
28
|
+
|
|
29
|
+
LLM-judge evaluators for AgentForge (feat-006).
|
|
30
|
+
|
|
31
|
+
This package ships the **G-Eval** engine — an LLM-as-judge grader
|
|
32
|
+
that scores agent outputs against a rubric YAML — plus six named
|
|
33
|
+
graders that wrap G-Eval with reference rubrics:
|
|
34
|
+
|
|
35
|
+
| Grader | Scores |
|
|
36
|
+
|---|---|
|
|
37
|
+
| `Correctness` | Output matches the ground-truth answer (rubric-tunable for binary / Likert / ordinal) |
|
|
38
|
+
| `Faithfulness` | Output is *supported by* the retrieved evidence (no claims beyond what was retrieved) |
|
|
39
|
+
| `Groundedness` | Output *stays inside* the provided sources (no off-source content) |
|
|
40
|
+
| `Hallucination` | Output contains content not derivable from inputs (faithfulness + groundedness combined into a single risk score) |
|
|
41
|
+
| `Relevance` | Output addresses the user's question vs going off-topic |
|
|
42
|
+
| `Helpfulness` | Output is useful — actionable, complete, well-structured |
|
|
43
|
+
|
|
44
|
+
Each grader takes a judge `LLMClient` at construction. The judge is
|
|
45
|
+
typically a cheaper model than the agent's primary model (e.g. Haiku
|
|
46
|
+
judging Sonnet output) — cuts cost and reduces "judge agrees with
|
|
47
|
+
itself" bias.
|
|
48
|
+
|
|
49
|
+
## Quick start
|
|
50
|
+
|
|
51
|
+
```python
|
|
52
|
+
from agentforge import Agent
|
|
53
|
+
from agentforge_bedrock import BedrockClient
|
|
54
|
+
from agentforge_eval_geval import Correctness, Faithfulness
|
|
55
|
+
|
|
56
|
+
judge = BedrockClient(model_id="us.anthropic.claude-haiku-4-5")
|
|
57
|
+
|
|
58
|
+
agent = Agent(
|
|
59
|
+
model="bedrock:us.anthropic.claude-sonnet-4-5-20250929",
|
|
60
|
+
evaluators=[
|
|
61
|
+
Correctness(judge=judge, ground_truth_field="expected"),
|
|
62
|
+
Faithfulness(judge=judge, sources_field="retrieved_docs"),
|
|
63
|
+
],
|
|
64
|
+
)
|
|
65
|
+
result = await agent.run("Summarise PR #42")
|
|
66
|
+
print(result.eval_scores)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Cost-bounded: each judge call bills against the run's `BudgetPolicy`
|
|
70
|
+
(feat-007). When the remaining budget falls below the grader's
|
|
71
|
+
`cost_estimate_usd`, the agent skips the grader and logs a WARN.
|
|
72
|
+
|
|
73
|
+
## Custom rubrics with G-Eval
|
|
74
|
+
|
|
75
|
+
```python
|
|
76
|
+
from agentforge_eval_geval import GEval
|
|
77
|
+
|
|
78
|
+
grader = GEval(
|
|
79
|
+
judge=judge,
|
|
80
|
+
name="code-review-quality",
|
|
81
|
+
rubric={
|
|
82
|
+
"criteria": "Score the PR description's accuracy and completeness.",
|
|
83
|
+
"scoring": "0.0 = incorrect/incomplete; 1.0 = accurate and complete",
|
|
84
|
+
"examples": [
|
|
85
|
+
{"output": "...", "score": 0.9, "reasoning": "..."},
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
)
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Or load from a YAML file:
|
|
92
|
+
|
|
93
|
+
```python
|
|
94
|
+
grader = GEval.from_rubric_file("./rubrics/code-review.yaml", judge=judge)
|
|
95
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
agentforge_eval_geval/__init__.py,sha256=WKU14WTBaXLXdTdQl4k1r9DYQh8Zsf-vbNOKdeIWW-0,756
|
|
2
|
+
agentforge_eval_geval/engine.py,sha256=wakJBREmnDkMaoT6dKMZeHthklmpmWkBLEI3gdY-N10,7481
|
|
3
|
+
agentforge_eval_geval/graders.py,sha256=V3RuYjPlWTlPQupyEdRE0kz_IEK4xf4XcERzjgrkpUU,3362
|
|
4
|
+
agentforge_eval_geval/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
agentforge_eval_geval/rubrics/correctness.yaml,sha256=2hRH1dPtIc1odUDgDk65peDstGqcjJ1S1rzfqBlGXz4,841
|
|
6
|
+
agentforge_eval_geval/rubrics/faithfulness.yaml,sha256=LLEp4GS-Uk_T5ev7ho2kfu3C6uEDTYot4ye-VLEE4PA,971
|
|
7
|
+
agentforge_eval_geval/rubrics/groundedness.yaml,sha256=Z0iUKH8m2PReP2E9CzWcsHmv6BmJM7ycFKAFE_mOlhA,890
|
|
8
|
+
agentforge_eval_geval/rubrics/hallucination.yaml,sha256=38TRWS5KDdabipZnEqpRnp4mFIkzcX5eawdwV6sk0SM,984
|
|
9
|
+
agentforge_eval_geval/rubrics/helpfulness.yaml,sha256=_00534X5B2RUyqvyR2LYiWDyKitzk6lTuAHdDT_zQrw,770
|
|
10
|
+
agentforge_eval_geval/rubrics/relevance.yaml,sha256=oEcuK9v-GNMmTzE7Mg0C13zbWYYia8YxN3JAuDZHSeY,648
|
|
11
|
+
agentforge_eval_geval-0.2.3.dist-info/METADATA,sha256=VoF5jnMjiUFi07WaVhDGkcWdrwOoe84THyqv4qLn6BE,3535
|
|
12
|
+
agentforge_eval_geval-0.2.3.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
13
|
+
agentforge_eval_geval-0.2.3.dist-info/entry_points.txt,sha256=vivY5ac3PUdVaazMLjbw1WoqJbaH18E78CjLOox4dfI,407
|
|
14
|
+
agentforge_eval_geval-0.2.3.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
15
|
+
agentforge_eval_geval-0.2.3.dist-info/RECORD,,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
[agentforge.evaluators]
|
|
2
|
+
correctness = agentforge_eval_geval.graders:Correctness
|
|
3
|
+
faithfulness = agentforge_eval_geval.graders:Faithfulness
|
|
4
|
+
geval = agentforge_eval_geval.engine:GEval
|
|
5
|
+
groundedness = agentforge_eval_geval.graders:Groundedness
|
|
6
|
+
hallucination = agentforge_eval_geval.graders:Hallucination
|
|
7
|
+
helpfulness = agentforge_eval_geval.graders:Helpfulness
|
|
8
|
+
relevance = agentforge_eval_geval.graders:Relevance
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|