Skip to content

Commit a39307a

Browse files
committed
nicer empty tool calls
1 parent 0574d6c commit a39307a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/langchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def on_llm_end(self, response, *, run_id, **kwargs):
447447

448448
try:
449449
tool_calls = getattr(generation.message, "tool_calls", None)
450-
if tool_calls is not None:
450+
if tool_calls is not None and tool_calls != []:
451451
set_data_normalized(
452452
span,
453453
SPANDATA.GEN_AI_RESPONSE_TOOL_CALLS,

0 commit comments

Comments
 (0)