We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83f2d28 commit 39a1726Copy full SHA for 39a1726
1 file changed
src/agentevals/openai_eval_backend.py
@@ -69,7 +69,9 @@ def _build_jsonl_items(
69
for i, actual_inv in enumerate(actual_invocations):
70
item: dict[str, Any] = {"actual_response": _content_to_text(actual_inv.final_response)}
71
if include_expected:
72
- item["expected_response"] = _content_to_text(expected_invocations[i].final_response) if i < len(expected_invocations) else ""
+ item["expected_response"] = (
73
+ _content_to_text(expected_invocations[i].final_response) if i < len(expected_invocations) else ""
74
+ )
75
items.append({"item": item})
76
return items
77
0 commit comments