langtrace-python-sdk 3.0.0__py3-none-any.whl → 3.0.2__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,4 @@
1
1
  import json
2
- import openai
3
2
  from typing import Any, Dict, List, Optional, Callable, Awaitable, Union
4
3
  from langtrace.trace_attributes import (
5
4
  LLMSpanAttributes,
@@ -46,7 +45,7 @@ def filter_valid_attributes(attributes):
46
45
  return {
47
46
  key: value
48
47
  for key, value in attributes.items()
49
- if value is not None and value != openai.NOT_GIVEN and value != ""
48
+ if value is not None and value != NOT_GIVEN and value != ""
50
49
  }
51
50
 
52
51
 
@@ -3,27 +3,33 @@ from enum import Enum
3
3
 
4
4
 
5
5
  class InstrumentationType(Enum):
6
- OPENAI = "openai"
7
- COHERE = "cohere"
8
6
  ANTHROPIC = "anthropic"
9
- GROQ = "groq"
10
- MISTRAL = "mistral"
11
- PINECONE = "pinecone-client"
12
- LLAMAINDEX = "llama-index"
7
+ AUTOGEN = "autogen"
13
8
  CHROMADB = "chromadb"
14
- QDRANT = "qdrant"
9
+ COHERE = "cohere"
10
+ CREW_AI = "crewai"
11
+ CREWAI = "crewai"
12
+ DSPY = "dspy-ai"
13
+ EMBEDCHAIN = "embedchain"
14
+ GEMINI = "google-generativeai"
15
+ GOOGLE_CLOUD_AI_PLATFORM = "google-cloud-aiplatform"
16
+ GOOGLE_GENERATIVEAI = "google-generativeai"
17
+ GROQ = "groq"
15
18
  LANGCHAIN = "langchain"
16
- LANGCHAIN_CORE = "langchain-core"
17
19
  LANGCHAIN_COMMUNITY = "langchain-community"
20
+ LANGCHAIN_CORE = "langchain-core"
18
21
  LANGGRAPH = "langgraph"
19
- WEAVIATE = "weaviate"
20
- OLLAMA = "ollama"
21
- AUTOGEN = "autogen"
22
- DSPY = "dspy-ai"
23
- CREWAI = "crewai"
24
- GEMINI = "google-generativeai"
25
- VERTEXAI = "google-cloud-aiplatform"
22
+ LITELLM = "litellm"
23
+ LLAMAINDEX = "llama-index"
24
+ MISTRAL = "mistral"
26
25
  MISTRALAI = "mistralai"
26
+ OLLAMA = "ollama"
27
+ OPENAI = "openai"
28
+ PINECONE = "pinecone-client"
29
+ QDRANT = "qdrant"
30
+ SQLALCHEMY = "sqlalchemy"
31
+ VERTEXAI = "vertexai"
32
+ WEAVIATE = "weaviate"
27
33
 
28
34
  @staticmethod
29
35
  def from_string(value: str):
@@ -1 +1 @@
1
- __version__ = "3.0.0"
1
+ __version__ = "3.0.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: langtrace-python-sdk
3
- Version: 3.0.0
3
+ Version: 3.0.2
4
4
  Summary: Python SDK for LangTrace
5
5
  Project-URL: Homepage, https://github.com/Scale3-Labs/langtrace-python-sdk
6
6
  Author-email: Scale3 Labs <engineering@scale3labs.com>
@@ -97,7 +97,7 @@ examples/weaviate_example/__init__.py,sha256=8JMDBsRSEV10HfTd-YC7xb4txBjD3la56sn
97
97
  examples/weaviate_example/query_text.py,sha256=wPHQTc_58kPoKTZMygVjTj-2ZcdrIuaausJfMxNQnQc,127162
98
98
  langtrace_python_sdk/__init__.py,sha256=VZM6i71NR7pBQK6XvJWRelknuTYUhqwqE7PlicKa5Wg,1166
99
99
  langtrace_python_sdk/langtrace.py,sha256=EIj2oQc2b_Vsm0bKqriYcnJHXxJbMmTu3rCUm25E5_s,10692
100
- langtrace_python_sdk/version.py,sha256=EPmgXOdWKks5S__ZMH7Nu6xpAeVrZpfxaFy4pykuyeI,22
100
+ langtrace_python_sdk/version.py,sha256=YKXrr5J7dV2n7ZhaRv0tigylRDtfOuvJC9Y4ouFZpzo,22
101
101
  langtrace_python_sdk/constants/__init__.py,sha256=3CNYkWMdd1DrkGqzLUgNZXjdAlM6UFMlf_F-odAToyc,146
102
102
  langtrace_python_sdk/constants/exporter/langtrace_exporter.py,sha256=d-3Qn5C_NTy1NkmdavZvy-6vePwTC5curN6QMy2haHc,50
103
103
  langtrace_python_sdk/constants/instrumentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -175,7 +175,7 @@ langtrace_python_sdk/instrumentation/ollama/instrumentation.py,sha256=jdsvkqUJAA
175
175
  langtrace_python_sdk/instrumentation/ollama/patch.py,sha256=7ETx0tQic5h_kH1f-IeptFwgNTBb4hSkTkWsB18Avm0,5375
176
176
  langtrace_python_sdk/instrumentation/openai/__init__.py,sha256=VPHRNCQEdkizIVP2d0Uw_a7t8XOTSTprEIB8oboJFbs,95
177
177
  langtrace_python_sdk/instrumentation/openai/instrumentation.py,sha256=PZxI0qfoud1VsKGmJu49YDp0Z9z9TzCR8qxR3uznOMA,2810
178
- langtrace_python_sdk/instrumentation/openai/patch.py,sha256=gW-3fUA-W4d9ADRYgNE_Nh6vijIS252J99Ato0OvunY,24246
178
+ langtrace_python_sdk/instrumentation/openai/patch.py,sha256=_xpvGmWBQtu_J0aPesgk-J6zXpZFblG3ukvs9ZzAm0w,24225
179
179
  langtrace_python_sdk/instrumentation/openai/types.py,sha256=aVkoa7tmAbYfyOhnyMrDaVjQuwhmRNLMthlNtKMtWX8,4311
180
180
  langtrace_python_sdk/instrumentation/pinecone/__init__.py,sha256=DzXyGh9_MGWveJvXULkFwdkf7PbG2s3bAWtT1Dmz7Ok,99
181
181
  langtrace_python_sdk/instrumentation/pinecone/instrumentation.py,sha256=HDXkRITrVPwdQEoOYJOfMzZE_2-vDDvuqHTlD8W1lQw,1845
@@ -189,7 +189,7 @@ langtrace_python_sdk/instrumentation/vertexai/patch.py,sha256=mLMmmmovYBaDXgnSSJ
189
189
  langtrace_python_sdk/instrumentation/weaviate/__init__.py,sha256=Mc-Je6evPo-kKQzerTG7bd1XO5JOh4YGTE3wBxaUBwg,99
190
190
  langtrace_python_sdk/instrumentation/weaviate/instrumentation.py,sha256=Kwq5QQTUQNRHrWrMnNe9X0TcqtXGiNpBidsuToRTqG0,2417
191
191
  langtrace_python_sdk/instrumentation/weaviate/patch.py,sha256=aWLDbNGz35V6XQUv4lkMD0O689suqh6KdTa33VDtUkE,6905
192
- langtrace_python_sdk/types/__init__.py,sha256=VnfLV5pVHIB9VRIpEwIDQjWSPEAqQKnq6VNbqsm9W3Q,4287
192
+ langtrace_python_sdk/types/__init__.py,sha256=F3zef0ovPIr9hxmF8XK9tW3DKmq6eFrj3bZo3HCbNqA,4484
193
193
  langtrace_python_sdk/utils/__init__.py,sha256=O-Ra9IDd1MnxihdQUC8HW_wYFhk7KbTCK2BIl02yacQ,2935
194
194
  langtrace_python_sdk/utils/langtrace_sampler.py,sha256=BupNndHbU9IL_wGleKetz8FdcveqHMBVz1bfKTTW80w,1753
195
195
  langtrace_python_sdk/utils/llm.py,sha256=mA7nEpndjKwPY3LfYV8hv-83xrDlD8MSTW8mItp5tXI,14953
@@ -241,8 +241,8 @@ tests/pinecone/cassettes/test_query.yaml,sha256=b5v9G3ssUy00oG63PlFUR3JErF2Js-5A
241
241
  tests/pinecone/cassettes/test_upsert.yaml,sha256=neWmQ1v3d03V8WoLl8FoFeeCYImb8pxlJBWnFd_lITU,38607
242
242
  tests/qdrant/conftest.py,sha256=9n0uHxxIjWk9fbYc4bx-uP8lSAgLBVx-cV9UjnsyCHM,381
243
243
  tests/qdrant/test_qdrant.py,sha256=pzjAjVY2kmsmGfrI2Gs2xrolfuaNHz7l1fqGQCjp5_o,3353
244
- langtrace_python_sdk-3.0.0.dist-info/METADATA,sha256=555FdbFu9MWEAfK3U5tg5siHh_60x_fQ0Fpc5eeX-Q4,15868
245
- langtrace_python_sdk-3.0.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
246
- langtrace_python_sdk-3.0.0.dist-info/entry_points.txt,sha256=1_b9-qvf2fE7uQNZcbUei9vLpFZBbbh9LrtGw95ssAo,70
247
- langtrace_python_sdk-3.0.0.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
248
- langtrace_python_sdk-3.0.0.dist-info/RECORD,,
244
+ langtrace_python_sdk-3.0.2.dist-info/METADATA,sha256=EHkA1pjkpBxKREWji6KvvNA5xmqgLcJHOW1qDJAh5RE,15868
245
+ langtrace_python_sdk-3.0.2.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
246
+ langtrace_python_sdk-3.0.2.dist-info/entry_points.txt,sha256=1_b9-qvf2fE7uQNZcbUei9vLpFZBbbh9LrtGw95ssAo,70
247
+ langtrace_python_sdk-3.0.2.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
248
+ langtrace_python_sdk-3.0.2.dist-info/RECORD,,