We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b4b2ba commit c7e871bCopy full SHA for c7e871b
1 file changed
tests/integrations/langchain/test_langchain.py
@@ -325,10 +325,12 @@ def test_tool_execution_span(
325
assert tx["contexts"]["trace"]["origin"] == "manual"
326
327
chat_spans = list(x for x in tx["spans"] if x["op"] == "gen_ai.chat")
328
- tool_exec_span = next(x for x in tx["spans"] if x["op"] == "gen_ai.execute_tool")
329
-
330
assert len(chat_spans) == 2
331
+ tool_exec_spans = list(x for x in tx["spans"] if x["op"] == "gen_ai.execute_tool")
+ assert len(tool_exec_spans) == 1
332
+ tool_exec_span = tool_exec_spans[0]
333
+
334
assert chat_spans[0]["origin"] == "auto.ai.langchain"
335
assert chat_spans[1]["origin"] == "auto.ai.langchain"
336
assert tool_exec_span["origin"] == "auto.ai.langchain"
0 commit comments