Skip to content

Commit b476f13

Browse files
committed
Use argument() instead of [function][arguments]
1 parent 701a7fc commit b476f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/testing/Examples/langgraph.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_weather_agent_with_sf_and_nyc(weather_agent):
116116
find_weather_tool_calls = trace.tool_calls(name="_find_weather")
117117
assert_true(len(find_weather_tool_calls) == 2)
118118
find_weather_tool_call_args = str(
119-
F.map(lambda x: x["function"]["arguments"], find_weather_tool_calls)
119+
F.map(lambda x: x.argument(), find_weather_tool_calls)
120120
)
121121
assert_true(
122122
"San Francisco" in find_weather_tool_call_args

0 commit comments

Comments
 (0)