log_inputs#
- langsmith.testing._internal.log_inputs(inputs: dict, /) None [source]#
Log run inputs from within a pytest test run.
Warning
This API is in beta and might change in future versions.
Should only be used in pytest tests decorated with @pytest.mark.langsmith.
- Parameters:
inputs (dict) – Inputs to log.
- Return type:
None
Example
from langsmith import testing as t @pytest.mark.langsmith def test_foo() -> None: x = 0 y = 1 t.log_inputs({"x": x, "y": y}) assert foo(x, y) == 2