From 98e966d424dd1b79b60a052f9f485b0f22156163 Mon Sep 17 00:00:00 2001 From: Bagatur Date: Tue, 7 Jan 2025 13:30:03 -0500 Subject: [PATCH] fmt --- libs/langgraph/tests/test_prebuilt.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/langgraph/tests/test_prebuilt.py b/libs/langgraph/tests/test_prebuilt.py index 35264deb1..4caa85f98 100644 --- a/libs/langgraph/tests/test_prebuilt.py +++ b/libs/langgraph/tests/test_prebuilt.py @@ -2041,3 +2041,9 @@ def foo(a: str, b: int) -> float: return 0.0 assert _get_state_args(foo) == {"a": None, "b": "bar"} + + +def test_inspect_react() -> None: + model = FakeToolCallingModel(tool_calls=[]) + agent = create_react_agent(model, []) + inspect.getclosurevars(agent.invoke)