Skip to content

Commit b1aa03b

Browse files
committed
also update in integration
1 parent 6b99098 commit b1aa03b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sentry_sdk/integrations/langchain.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,17 @@
4949
raise DidNotEnable("langchain not installed")
5050

5151

52+
try:
53+
from langchain_classic.agents import AgentExecutor
54+
except ImportError:
55+
AgentExecutor = None
56+
5257
try:
5358
from langchain.agents import AgentExecutor
5459
except ImportError:
5560
AgentExecutor = None
5661

62+
5763
DATA_FIELDS = {
5864
"frequency_penalty": SPANDATA.GEN_AI_REQUEST_FREQUENCY_PENALTY,
5965
"function_call": SPANDATA.GEN_AI_RESPONSE_TOOL_CALLS,

0 commit comments

Comments
 (0)