Skip to content

Commit b05ea2c

Browse files
planetf1claude
andcommitted
docs: remove redundant Attributes: entries and drop TASK.md (#613)
Remove Attributes: sections where fields duplicate constructor params verbatim (same name, same type, same description), keeping only entries that add genuinely new information (computed/derived attributes): - mellea/backends/backend.py: FormatterBackend - mellea/core/base.py: CBlock, ImageBlock, ModelOutputThunk, ContextTurn - cli/eval/runner.py: InputEvalResult, TestEvalResult (keep computed properties passed_count, total_count, pass_rate) Also removes TASK.md left over from development. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 36b4f4e commit b05ea2c

File tree

4 files changed

+1
-96
lines changed

4 files changed

+1
-96
lines changed

TASK.md

Lines changed: 0 additions & 67 deletions
This file was deleted.

cli/eval/runner.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ class InputEvalResult:
3333
score (int): Numeric score assigned by the judge (``1`` for pass, ``0`` for fail).
3434
validation_reason (str): Justification text returned by the judge model.
3535
36-
Attributes:
37-
input_text (str): The raw input text sent to the generation model.
38-
model_output (str): The text response produced by the generation model.
39-
validation_passed (bool): Whether the judge scored this response as passing.
40-
score (int): Numeric score assigned by the judge (``1`` for pass, ``0`` for fail).
41-
validation_reason (str): Justification text returned by the judge model.
4236
"""
4337

4438
def __init__(
@@ -81,10 +75,6 @@ class TestEvalResult:
8175
produced by running the generation and judge models.
8276
8377
Attributes:
84-
test_eval (TestBasedEval): The unit test specification containing
85-
the test ID, name, instructions, inputs, and expected targets.
86-
input_results (list[InputEvalResult]): Per-input evaluation outcomes
87-
produced by running the generation and judge models.
8878
passed_count (int): Number of inputs that received a passing score.
8979
total_count (int): Total number of inputs evaluated.
9080
pass_rate (float): Fraction of inputs that passed (``passed_count / total_count``).

mellea/backends/backend.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ class FormatterBackend(Backend, abc.ABC):
3434
model_options (dict | None): Default model options; if ``None``, an empty dict
3535
is used.
3636
37-
Attributes:
38-
model_id (str | ModelIdentifier): The model identifier for this backend.
39-
model_options (dict): The default model options for generation requests.
40-
formatter (ChatFormatter): The formatter used to render components into prompts.
4137
"""
4238

4339
def __init__(

mellea/core/base.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from PIL import Image as PILImage
2828

2929

30-
class CBlock:
30+
canclass CBlock:
3131
"""A `CBlock` is a block of content that can serve as input to or output from an LLM.
3232
3333
Args:
@@ -36,9 +36,6 @@ class CBlock:
3636
completion object). Defaults to an empty dict.
3737
cache (bool): If ``True``, the inference engine may store the KV cache for this block. Experimental.
3838
39-
Attributes:
40-
cache (bool): Whether the inference engine may store the KV cache for this block.
41-
value (str | None): The underlying string content of the block.
4239
"""
4340

4441
def __init__(
@@ -89,8 +86,6 @@ class ImageBlock(CBlock):
8986
value (str): A valid base64-encoded PNG string (with or without a data URI prefix).
9087
meta (dict[str, Any] | None): Optional metadata to associate with this image block.
9188
92-
Attributes:
93-
value (str): The base64-encoded PNG string representing the image.
9489
"""
9590

9691
def __init__(self, value: str, meta: dict[str, Any] | None = None):
@@ -272,10 +267,6 @@ class ModelOutputThunk(CBlock, Generic[S]):
272267
parsed_repr (S | None): An already-parsed representation to attach; set when re-wrapping existing output.
273268
tool_calls (dict[str, ModelToolCall] | None): Tool calls returned by the model alongside the text output.
274269
275-
Attributes:
276-
parsed_repr (S | None): The parsed representation of the output, non-``None`` once computed.
277-
tool_calls (dict[str, ModelToolCall] | None): Tool calls requested by the model, if any.
278-
value (str | None): The raw string output from the model, or ``None`` if not yet computed.
279270
"""
280271

281272
def __init__(
@@ -555,11 +546,6 @@ class ContextTurn:
555546
output (ModelOutputThunk | None): The model's output thunk for this turn,
556547
or ``None`` for an input-only partial turn.
557548
558-
Attributes:
559-
model_input (CBlock | Component | None): The input component or content block for this turn,
560-
or ``None`` when the turn represents an output-only partial turn.
561-
output (ModelOutputThunk | None): The model's output thunk for this turn,
562-
or ``None`` when the turn represents an input-only partial turn.
563549
"""
564550

565551
model_input: CBlock | Component | None

0 commit comments

Comments
 (0)