Skip to content

Commit c97a58a

Browse files
author
Andrei Bratu
committed
keyword lambda issue on older python versions
1 parent 907144e commit c97a58a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration/test_evals.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def test_flow_eval_works_with_callable(
256256
file={
257257
"id": flow.id,
258258
"type": "flow",
259-
"callable": lambda inputs: "bar",
259+
"callable": lambda question: "bar",
260260
},
261261
dataset={
262262
"path": eval_dataset.file_path,
@@ -288,7 +288,7 @@ def test_cannot_evaluate_agent_with_callable(
288288
file={
289289
"path": "Test Agent",
290290
"type": "agent",
291-
"callable": lambda inputs: "bar",
291+
"callable": lambda question: "bar",
292292
},
293293
dataset={
294294
"path": eval_dataset.file_path,
@@ -323,7 +323,7 @@ def test_flow_eval_resolves_to_default_with_callable(
323323
file={
324324
"id": flow_response.id,
325325
"type": "flow",
326-
"callable": lambda inputs: "It's complicated don't worry about it",
326+
"callable": lambda question: "It's complicated don't worry about it",
327327
},
328328
dataset={
329329
"path": eval_dataset.file_path,

0 commit comments

Comments
 (0)