We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 372dc7f commit b075eabCopy full SHA for b075eab
libs/core/langchain_core/tracers/langchain.py
@@ -222,7 +222,11 @@ def _persist_run_single(self, run: Run) -> None:
222
extra = run_dict.get("extra", {})
223
extra["runtime"] = get_runtime_environment()
224
run_dict["extra"] = extra
225
- inputs_is_truthy = bool(run_dict.get("inputs"))
+ inputs_ = run_dict.get("inputs")
226
+ if inputs_ and (len(inputs_) > 1 or bool(next(iter(inputs_.values())))):
227
+ inputs_is_truthy = True
228
+ else:
229
+ inputs_is_truthy = False
230
run.extra["inputs_is_truthy"] = inputs_is_truthy
231
self.client.create_run(**run_dict, project_name=self.project_name)
232
except Exception as e:
0 commit comments