OwlCyberSecurity - MANAGER
Edit File: langchain.cpython-312.pyc
� d��g6E � �: � d dl mZ d dlmZ d dlZd dlmZmZ d dlm Z m Z d dlmZ d dl mZ d dlmZ d d lmZmZ d d lmZmZ d dlmZ erd dlmZmZmZmZmZmZ d d lm Z d dl!m"Z" d dl#m$Z$ d dl%m&Z&m'Z' d dl(m)Z)m*Z* e jX e jZ e j\ e j^ e j` e jb e jd e jf e jh d� Z5g d�Z6 G d� de� Z7 G d� d� Z8 G d� de'� Z9d� Z:y# e+$ r ed� �w xY w)� )�OrderedDict��wrapsN)�set_ai_pipeline_name�record_token_usage)�OP�SPANDATA)�set_data_normalized)�should_send_default_pii)�Span)�DidNotEnable�Integration)�logger�capture_internal_exceptions)� TYPE_CHECKING)�Any�List�Callable�Dict�Union�Optional)�UUID)�BaseMessage)� LLMResult)�manager�BaseCallbackHandler)�AgentAction�AgentFinishzlangchain not installed) �temperature�top_p�top_k� function_call� tool_calls�tools�response_format� logit_bias�tags)zopenai-chatzanthropic-chatzcohere-chat�huggingface_endpointc �8 � e Zd ZdZde� �ZdZ dd�Zed� � Zy)�LangchainIntegration� langchainzauto.ai.� Nc �. � || _ || _ || _ y �N)�include_prompts� max_spans�tiktoken_encoding_name)�selfr/ r0 r1 s �P/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/langchain.py�__init__zLangchainIntegration.__init__<