langtrace-python-sdk 2.3.14__py3-none-any.whl → 2.3.16__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- examples/cohere_example/rerank.py +17 -4
- examples/langchain_example/__init__.py +3 -1
- examples/langchain_example/groq_example.py +78 -2
- langtrace_python_sdk/instrumentation/cohere/patch.py +4 -1
- langtrace_python_sdk/instrumentation/openai/patch.py +17 -7
- langtrace_python_sdk/utils/llm.py +2 -1
- langtrace_python_sdk/utils/misc.py +8 -0
- langtrace_python_sdk/version.py +1 -1
- {langtrace_python_sdk-2.3.14.dist-info → langtrace_python_sdk-2.3.16.dist-info}/METADATA +1 -1
- {langtrace_python_sdk-2.3.14.dist-info → langtrace_python_sdk-2.3.16.dist-info}/RECORD +13 -13
- {langtrace_python_sdk-2.3.14.dist-info → langtrace_python_sdk-2.3.16.dist-info}/WHEEL +0 -0
- {langtrace_python_sdk-2.3.14.dist-info → langtrace_python_sdk-2.3.16.dist-info}/entry_points.txt +0 -0
- {langtrace_python_sdk-2.3.14.dist-info → langtrace_python_sdk-2.3.16.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import cohere
|
|
2
2
|
from dotenv import find_dotenv, load_dotenv
|
|
3
|
+
from datetime import datetime
|
|
3
4
|
|
|
4
5
|
from langtrace_python_sdk import langtrace
|
|
5
6
|
|
|
@@ -16,10 +17,22 @@ co = cohere.Client()
|
|
|
16
17
|
# @with_langtrace_root_span("embed_create")
|
|
17
18
|
def rerank():
|
|
18
19
|
docs = [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
{
|
|
21
|
+
"text": "Carson City is the capital city of the American state of Nevada.",
|
|
22
|
+
"date": datetime.now(),
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"text": "The Commonwealth of the Northern Mariana Islands is a group of islands in the Pacific Ocean. Its capital is Saipan.",
|
|
26
|
+
"date": datetime(2020, 5, 17),
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"text": "Washington, D.C. (also known as simply Washington or D.C., and officially as the District of Columbia) is the capital of the United States. It is a federal district.",
|
|
30
|
+
"date": datetime(1776, 7, 4),
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"text": "Capital punishment (the death penalty) has existed in the United States since before the United States was a country. As of 2017, capital punishment is legal in 30 of the 50 states.",
|
|
34
|
+
"date": datetime(2023, 9, 14),
|
|
35
|
+
},
|
|
23
36
|
]
|
|
24
37
|
|
|
25
38
|
response = co.rerank(
|
|
@@ -2,7 +2,7 @@ from examples.langchain_example.langchain_google_genai import basic_google_genai
|
|
|
2
2
|
from .basic import basic_app, rag, load_and_split
|
|
3
3
|
from langtrace_python_sdk import with_langtrace_root_span
|
|
4
4
|
|
|
5
|
-
from .groq_example import groq_basic, groq_streaming
|
|
5
|
+
from .groq_example import groq_basic, groq_tool_choice, groq_streaming
|
|
6
6
|
from .langgraph_example_tools import basic_graph_tools
|
|
7
7
|
|
|
8
8
|
|
|
@@ -20,3 +20,5 @@ class GroqRunner:
|
|
|
20
20
|
@with_langtrace_root_span("Groq")
|
|
21
21
|
def run(self):
|
|
22
22
|
groq_streaming()
|
|
23
|
+
groq_basic()
|
|
24
|
+
groq_tool_choice()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import json
|
|
2
|
+
|
|
1
3
|
from dotenv import find_dotenv, load_dotenv
|
|
2
|
-
from langchain_core.prompts import ChatPromptTemplate
|
|
3
|
-
from langchain_groq import ChatGroq
|
|
4
4
|
from groq import Groq
|
|
5
5
|
|
|
6
6
|
_ = load_dotenv(find_dotenv())
|
|
@@ -30,6 +30,82 @@ def groq_basic():
|
|
|
30
30
|
return chat_completion
|
|
31
31
|
|
|
32
32
|
|
|
33
|
+
def groq_tool_choice():
|
|
34
|
+
|
|
35
|
+
user_prompt = "What is 25 * 4 + 10?"
|
|
36
|
+
MODEL = "llama3-groq-70b-8192-tool-use-preview"
|
|
37
|
+
|
|
38
|
+
def calculate(expression):
|
|
39
|
+
"""Evaluate a mathematical expression"""
|
|
40
|
+
try:
|
|
41
|
+
result = eval(expression)
|
|
42
|
+
return json.dumps({"result": result})
|
|
43
|
+
except:
|
|
44
|
+
return json.dumps({"error": "Invalid expression"})
|
|
45
|
+
|
|
46
|
+
messages = [
|
|
47
|
+
{
|
|
48
|
+
"role": "system",
|
|
49
|
+
"content": "You are a calculator assistant. Use the calculate function to perform mathematical operations and provide the results.",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"role": "user",
|
|
53
|
+
"content": user_prompt,
|
|
54
|
+
},
|
|
55
|
+
]
|
|
56
|
+
tools = [
|
|
57
|
+
{
|
|
58
|
+
"type": "function",
|
|
59
|
+
"function": {
|
|
60
|
+
"name": "calculate",
|
|
61
|
+
"description": "Evaluate a mathematical expression",
|
|
62
|
+
"parameters": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"properties": {
|
|
65
|
+
"expression": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "The mathematical expression to evaluate",
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"required": ["expression"],
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
response = client.chat.completions.create(
|
|
76
|
+
model=MODEL,
|
|
77
|
+
messages=messages,
|
|
78
|
+
tools=tools,
|
|
79
|
+
tool_choice={"type": "function", "function": {"name": "calculate"}},
|
|
80
|
+
max_tokens=4096,
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
response_message = response.choices[0].message
|
|
84
|
+
tool_calls = response_message.tool_calls
|
|
85
|
+
if tool_calls:
|
|
86
|
+
available_functions = {
|
|
87
|
+
"calculate": calculate,
|
|
88
|
+
}
|
|
89
|
+
messages.append(response_message)
|
|
90
|
+
for tool_call in tool_calls:
|
|
91
|
+
function_name = tool_call.function.name
|
|
92
|
+
function_to_call = available_functions[function_name]
|
|
93
|
+
function_args = json.loads(tool_call.function.arguments)
|
|
94
|
+
function_response = function_to_call(
|
|
95
|
+
expression=function_args.get("expression")
|
|
96
|
+
)
|
|
97
|
+
messages.append(
|
|
98
|
+
{
|
|
99
|
+
"tool_call_id": tool_call.id,
|
|
100
|
+
"role": "tool",
|
|
101
|
+
"name": function_name,
|
|
102
|
+
"content": function_response,
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
second_response = client.chat.completions.create(model=MODEL, messages=messages)
|
|
106
|
+
return second_response.choices[0].message.content
|
|
107
|
+
|
|
108
|
+
|
|
33
109
|
def groq_streaming():
|
|
34
110
|
chat_completion = client.chat.completions.create(
|
|
35
111
|
messages=[
|
|
@@ -27,6 +27,7 @@ from langtrace_python_sdk.utils.llm import (
|
|
|
27
27
|
)
|
|
28
28
|
from langtrace.trace_attributes import Event, LLMSpanAttributes
|
|
29
29
|
from langtrace_python_sdk.utils import set_span_attribute
|
|
30
|
+
from langtrace_python_sdk.utils.misc import datetime_encoder
|
|
30
31
|
from opentelemetry.trace import SpanKind
|
|
31
32
|
from opentelemetry.trace.status import Status, StatusCode
|
|
32
33
|
|
|
@@ -50,7 +51,9 @@ def rerank(original_method, version, tracer):
|
|
|
50
51
|
SpanAttributes.LLM_REQUEST_MODEL: kwargs.get("model") or "command-r-plus",
|
|
51
52
|
SpanAttributes.LLM_URL: APIS["RERANK"]["URL"],
|
|
52
53
|
SpanAttributes.LLM_PATH: APIS["RERANK"]["ENDPOINT"],
|
|
53
|
-
SpanAttributes.LLM_REQUEST_DOCUMENTS: json.dumps(
|
|
54
|
+
SpanAttributes.LLM_REQUEST_DOCUMENTS: json.dumps(
|
|
55
|
+
kwargs.get("documents"), cls=datetime_encoder
|
|
56
|
+
),
|
|
54
57
|
SpanAttributes.LLM_COHERE_RERANK_QUERY: kwargs.get("query"),
|
|
55
58
|
**get_extra_attributes(),
|
|
56
59
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import json
|
|
2
|
+
import openai
|
|
2
3
|
from typing import Any, Dict, List, Optional, Callable, Awaitable, Union
|
|
3
4
|
from langtrace.trace_attributes import (
|
|
4
5
|
LLMSpanAttributes,
|
|
@@ -40,6 +41,15 @@ from langtrace_python_sdk.instrumentation.openai.types import (
|
|
|
40
41
|
)
|
|
41
42
|
|
|
42
43
|
|
|
44
|
+
def filter_valid_attributes(attributes):
|
|
45
|
+
"""Filter attributes where value is not None, not an empty string, and not openai.NOT_GIVEN."""
|
|
46
|
+
return {
|
|
47
|
+
key: value
|
|
48
|
+
for key, value in attributes.items()
|
|
49
|
+
if value is not None and value != openai.NOT_GIVEN and value != ""
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
43
53
|
def images_generate(version: str, tracer: Tracer) -> Callable:
|
|
44
54
|
"""
|
|
45
55
|
Wrap the `generate` method of the `Images` class to trace it.
|
|
@@ -57,7 +67,7 @@ def images_generate(version: str, tracer: Tracer) -> Callable:
|
|
|
57
67
|
**get_extra_attributes(), # type: ignore
|
|
58
68
|
}
|
|
59
69
|
|
|
60
|
-
attributes = LLMSpanAttributes(**span_attributes)
|
|
70
|
+
attributes = LLMSpanAttributes(**filter_valid_attributes(span_attributes))
|
|
61
71
|
|
|
62
72
|
with tracer.start_as_current_span(
|
|
63
73
|
name=get_span_name(APIS["IMAGES_GENERATION"]["METHOD"]),
|
|
@@ -118,7 +128,7 @@ def async_images_generate(version: str, tracer: Tracer) -> Callable:
|
|
|
118
128
|
**get_extra_attributes(), # type: ignore
|
|
119
129
|
}
|
|
120
130
|
|
|
121
|
-
attributes = LLMSpanAttributes(**span_attributes)
|
|
131
|
+
attributes = LLMSpanAttributes(**filter_valid_attributes(span_attributes))
|
|
122
132
|
|
|
123
133
|
with tracer.start_as_current_span(
|
|
124
134
|
name=get_span_name(APIS["IMAGES_GENERATION"]["METHOD"]),
|
|
@@ -181,7 +191,7 @@ def images_edit(version: str, tracer: Tracer) -> Callable:
|
|
|
181
191
|
**get_extra_attributes(), # type: ignore
|
|
182
192
|
}
|
|
183
193
|
|
|
184
|
-
attributes = LLMSpanAttributes(**span_attributes)
|
|
194
|
+
attributes = LLMSpanAttributes(**filter_valid_attributes(span_attributes))
|
|
185
195
|
|
|
186
196
|
with tracer.start_as_current_span(
|
|
187
197
|
name=APIS["IMAGES_EDIT"]["METHOD"],
|
|
@@ -268,7 +278,7 @@ def chat_completions_create(version: str, tracer: Tracer) -> Callable:
|
|
|
268
278
|
**get_extra_attributes(), # type: ignore
|
|
269
279
|
}
|
|
270
280
|
|
|
271
|
-
attributes = LLMSpanAttributes(**span_attributes)
|
|
281
|
+
attributes = LLMSpanAttributes(**filter_valid_attributes(span_attributes))
|
|
272
282
|
|
|
273
283
|
span = tracer.start_span(
|
|
274
284
|
name=get_span_name(APIS["CHAT_COMPLETION"]["METHOD"]),
|
|
@@ -356,7 +366,7 @@ def async_chat_completions_create(version: str, tracer: Tracer) -> Callable:
|
|
|
356
366
|
**get_extra_attributes(), # type: ignore
|
|
357
367
|
}
|
|
358
368
|
|
|
359
|
-
attributes = LLMSpanAttributes(**span_attributes)
|
|
369
|
+
attributes = LLMSpanAttributes(**filter_valid_attributes(span_attributes))
|
|
360
370
|
|
|
361
371
|
span = tracer.start_span(
|
|
362
372
|
name=get_span_name(APIS["CHAT_COMPLETION"]["METHOD"]),
|
|
@@ -438,7 +448,7 @@ def embeddings_create(version: str, tracer: Tracer) -> Callable:
|
|
|
438
448
|
[kwargs.get("input", "")]
|
|
439
449
|
)
|
|
440
450
|
|
|
441
|
-
attributes = LLMSpanAttributes(**span_attributes)
|
|
451
|
+
attributes = LLMSpanAttributes(**filter_valid_attributes(span_attributes))
|
|
442
452
|
|
|
443
453
|
with tracer.start_as_current_span(
|
|
444
454
|
name=get_span_name(APIS["EMBEDDINGS_CREATE"]["METHOD"]),
|
|
@@ -487,7 +497,7 @@ def async_embeddings_create(version: str, tracer: Tracer) -> Callable:
|
|
|
487
497
|
**get_extra_attributes(), # type: ignore
|
|
488
498
|
}
|
|
489
499
|
|
|
490
|
-
attributes = LLMSpanAttributes(**span_attributes)
|
|
500
|
+
attributes = LLMSpanAttributes(**filter_valid_attributes(span_attributes))
|
|
491
501
|
|
|
492
502
|
encoding_format = kwargs.get("encoding_format")
|
|
493
503
|
if encoding_format is not None:
|
|
@@ -124,6 +124,7 @@ def get_llm_request_attributes(kwargs, prompts=None, model=None, operation_name=
|
|
|
124
124
|
|
|
125
125
|
top_p = kwargs.get("p", None) or kwargs.get("top_p", None)
|
|
126
126
|
tools = kwargs.get("tools", None)
|
|
127
|
+
tool_choice = kwargs.get("tool_choice", None)
|
|
127
128
|
return {
|
|
128
129
|
SpanAttributes.LLM_OPERATION_NAME: operation_name,
|
|
129
130
|
SpanAttributes.LLM_REQUEST_MODEL: model
|
|
@@ -141,7 +142,7 @@ def get_llm_request_attributes(kwargs, prompts=None, model=None, operation_name=
|
|
|
141
142
|
SpanAttributes.LLM_FREQUENCY_PENALTY: kwargs.get("frequency_penalty"),
|
|
142
143
|
SpanAttributes.LLM_REQUEST_SEED: kwargs.get("seed"),
|
|
143
144
|
SpanAttributes.LLM_TOOLS: json.dumps(tools) if tools else None,
|
|
144
|
-
SpanAttributes.LLM_TOOL_CHOICE:
|
|
145
|
+
SpanAttributes.LLM_TOOL_CHOICE: json.dumps(tool_choice) if tool_choice else None,
|
|
145
146
|
SpanAttributes.LLM_REQUEST_LOGPROPS: kwargs.get("logprobs"),
|
|
146
147
|
SpanAttributes.LLM_REQUEST_LOGITBIAS: kwargs.get("logit_bias"),
|
|
147
148
|
SpanAttributes.LLM_REQUEST_TOP_LOGPROPS: kwargs.get("top_logprobs"),
|
|
@@ -60,3 +60,11 @@ def serialize_args(*args):
|
|
|
60
60
|
|
|
61
61
|
# Convert to string representation
|
|
62
62
|
return json.dumps(serializable_args)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class datetime_encoder(json.JSONEncoder):
|
|
66
|
+
def default(self, o):
|
|
67
|
+
if isinstance(o, datetime):
|
|
68
|
+
return o.isoformat()
|
|
69
|
+
|
|
70
|
+
return json.JSONEncoder.default(self, o)
|
langtrace_python_sdk/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.3.
|
|
1
|
+
__version__ = "2.3.16"
|
|
@@ -11,7 +11,7 @@ examples/cohere_example/__init__.py,sha256=oYpsnS-dKOlWLkPEUWhXxi1vfxa77bt_DOdkJ
|
|
|
11
11
|
examples/cohere_example/chat.py,sha256=A1ZSkkPPOj3h27VSSa_o_Thabz08ZUzUgTVgAG0pgcA,901
|
|
12
12
|
examples/cohere_example/chat_stream.py,sha256=BvhUgBEuyMhyzRZ_2i_SBvO9Ndf0b7-aRDyO399RyFE,664
|
|
13
13
|
examples/cohere_example/embed.py,sha256=p9BJvOg09JVb8BfTCb63v3uh_wOsi_OyrCAJdXXrE6E,496
|
|
14
|
-
examples/cohere_example/rerank.py,sha256=
|
|
14
|
+
examples/cohere_example/rerank.py,sha256=9XEG90sTa6djcHqikSqZDnffLhxEZub76e7-l2LPYdI,1445
|
|
15
15
|
examples/cohere_example/tools.py,sha256=a5uvS058tcwU6PJbF9EDO6LPVmPj2LoW4Vn8Web3Iq8,1656
|
|
16
16
|
examples/crewai_example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
examples/crewai_example/basic.py,sha256=PBu4f8yQfZO1L_22UDm_ReU9lnEcycjZcGuy5UpgDJM,1948
|
|
@@ -44,9 +44,9 @@ examples/gemini_example/function_tools.py,sha256=ZOBrdPy_8s3NDfsF5A4RXIoUi2VXlD8
|
|
|
44
44
|
examples/gemini_example/main.py,sha256=cTXqgOa6lEMwgX56uneM-1TbIY_QZtDRkByW5z0LpNk,2470
|
|
45
45
|
examples/hiveagent_example/basic.py,sha256=Sd7I5w8w5Xx7ODaydTY30yiq9HwJDMKHQywrZjgehP0,441
|
|
46
46
|
examples/inspect_ai_example/basic_eval.py,sha256=hDg2BB9ONNpOGRVH08HsghnS1373sOnq6dyDmUQd9gY,1040
|
|
47
|
-
examples/langchain_example/__init__.py,sha256=
|
|
47
|
+
examples/langchain_example/__init__.py,sha256=hYsiJzR050yCwip4-KZD9EhSLeBMeOUU1eQzyXSfwRs,669
|
|
48
48
|
examples/langchain_example/basic.py,sha256=hrwMHOUv78-su5DP9i5krkQnMGHq0svEXsBa40Jkggg,2981
|
|
49
|
-
examples/langchain_example/groq_example.py,sha256=
|
|
49
|
+
examples/langchain_example/groq_example.py,sha256=Y_VyCO8IcQ5ZdSssiUd5tfFXWhCvPioU5CvB-vi9lOU,3494
|
|
50
50
|
examples/langchain_example/langchain_google_example.py,sha256=SQqz3lWApm7DJK9pW-FwtGUtDJ5nkbJ8MIPz79Rwtw0,817
|
|
51
51
|
examples/langchain_example/langgraph_example.py,sha256=7C2a4Sg0PKbbab03CVkStO3MzT7C-O1UtdmObvBXurM,2005
|
|
52
52
|
examples/langchain_example/langgraph_example_tools.py,sha256=rFwgQYRngeyCz9PuBxnllp5t5PIHk8d-UDKwCQTgkxw,4208
|
|
@@ -92,7 +92,7 @@ examples/weaviate_example/__init__.py,sha256=8JMDBsRSEV10HfTd-YC7xb4txBjD3la56sn
|
|
|
92
92
|
examples/weaviate_example/query_text.py,sha256=wPHQTc_58kPoKTZMygVjTj-2ZcdrIuaausJfMxNQnQc,127162
|
|
93
93
|
langtrace_python_sdk/__init__.py,sha256=VZM6i71NR7pBQK6XvJWRelknuTYUhqwqE7PlicKa5Wg,1166
|
|
94
94
|
langtrace_python_sdk/langtrace.py,sha256=SmDig6WHYGmM0dUcguWs8J3S5fuSItHiyf8Sf-OnLDI,9858
|
|
95
|
-
langtrace_python_sdk/version.py,sha256=
|
|
95
|
+
langtrace_python_sdk/version.py,sha256=Zfs_cvuxgu1_6N2z1XAu_yk3f646HwTa8hmYMBhaeVA,23
|
|
96
96
|
langtrace_python_sdk/constants/__init__.py,sha256=3CNYkWMdd1DrkGqzLUgNZXjdAlM6UFMlf_F-odAToyc,146
|
|
97
97
|
langtrace_python_sdk/constants/exporter/langtrace_exporter.py,sha256=5MNjnAOg-4am78J3gVMH6FSwq5N8TOj72ugkhsw4vi0,46
|
|
98
98
|
langtrace_python_sdk/constants/instrumentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -126,7 +126,7 @@ langtrace_python_sdk/instrumentation/chroma/instrumentation.py,sha256=nT6PS6bsrI
|
|
|
126
126
|
langtrace_python_sdk/instrumentation/chroma/patch.py,sha256=jYcqBeu-0cYA29PO880oXYRwYh-R1oseXmzfK6UDBps,9074
|
|
127
127
|
langtrace_python_sdk/instrumentation/cohere/__init__.py,sha256=sGUSLdTUyYf36Tm6L5jQflhzCqvmWrhnBOMYHjvp6Hs,95
|
|
128
128
|
langtrace_python_sdk/instrumentation/cohere/instrumentation.py,sha256=YQFHZIBd7SSPD4b6Va-ZR0thf_AuBCqj5yzHLHJVWnM,2121
|
|
129
|
-
langtrace_python_sdk/instrumentation/cohere/patch.py,sha256=
|
|
129
|
+
langtrace_python_sdk/instrumentation/cohere/patch.py,sha256=AnRWIy00XaLdQg670s8FDXoVWai3sF1JKeR70pDuZ7I,20986
|
|
130
130
|
langtrace_python_sdk/instrumentation/crewai/__init__.py,sha256=_UBKfvQv7l0g2_wnmA5F6CdSAFH0atNOVPd49zsN3aM,88
|
|
131
131
|
langtrace_python_sdk/instrumentation/crewai/instrumentation.py,sha256=5Umzq8zjEnMEtjZZiMB4DQOPkxZ-1vts7RKC6JWpn24,2969
|
|
132
132
|
langtrace_python_sdk/instrumentation/crewai/patch.py,sha256=C2OKKPC-pzfzZWxPc74kHdYsKTX9yRhOgVY47WY9KN8,9109
|
|
@@ -165,7 +165,7 @@ langtrace_python_sdk/instrumentation/ollama/instrumentation.py,sha256=jdsvkqUJAA
|
|
|
165
165
|
langtrace_python_sdk/instrumentation/ollama/patch.py,sha256=7ETx0tQic5h_kH1f-IeptFwgNTBb4hSkTkWsB18Avm0,5375
|
|
166
166
|
langtrace_python_sdk/instrumentation/openai/__init__.py,sha256=VPHRNCQEdkizIVP2d0Uw_a7t8XOTSTprEIB8oboJFbs,95
|
|
167
167
|
langtrace_python_sdk/instrumentation/openai/instrumentation.py,sha256=PZxI0qfoud1VsKGmJu49YDp0Z9z9TzCR8qxR3uznOMA,2810
|
|
168
|
-
langtrace_python_sdk/instrumentation/openai/patch.py,sha256=
|
|
168
|
+
langtrace_python_sdk/instrumentation/openai/patch.py,sha256=gW-3fUA-W4d9ADRYgNE_Nh6vijIS252J99Ato0OvunY,24246
|
|
169
169
|
langtrace_python_sdk/instrumentation/openai/types.py,sha256=aVkoa7tmAbYfyOhnyMrDaVjQuwhmRNLMthlNtKMtWX8,4311
|
|
170
170
|
langtrace_python_sdk/instrumentation/pinecone/__init__.py,sha256=DzXyGh9_MGWveJvXULkFwdkf7PbG2s3bAWtT1Dmz7Ok,99
|
|
171
171
|
langtrace_python_sdk/instrumentation/pinecone/instrumentation.py,sha256=HDXkRITrVPwdQEoOYJOfMzZE_2-vDDvuqHTlD8W1lQw,1845
|
|
@@ -182,8 +182,8 @@ langtrace_python_sdk/instrumentation/weaviate/patch.py,sha256=aWLDbNGz35V6XQUv4l
|
|
|
182
182
|
langtrace_python_sdk/types/__init__.py,sha256=MeGkmoy2OY3V21GErDIdlf_N8Aj7HDld5Tpbvq2PwTY,4104
|
|
183
183
|
langtrace_python_sdk/utils/__init__.py,sha256=f6VKZ-izPamPT1-e2S35I8ONhHwm4EnZtjAix3CNIM8,1358
|
|
184
184
|
langtrace_python_sdk/utils/langtrace_sampler.py,sha256=BupNndHbU9IL_wGleKetz8FdcveqHMBVz1bfKTTW80w,1753
|
|
185
|
-
langtrace_python_sdk/utils/llm.py,sha256=
|
|
186
|
-
langtrace_python_sdk/utils/misc.py,sha256=
|
|
185
|
+
langtrace_python_sdk/utils/llm.py,sha256=Hm3mr1iuk1dC-dGnBymDS6PEdOO5vaoPQzCtTeOqUQs,14970
|
|
186
|
+
langtrace_python_sdk/utils/misc.py,sha256=LaQr5LOmZMiuwVdjYh7aIu6o2C_Xb1wgpQGNOVmRzfE,1918
|
|
187
187
|
langtrace_python_sdk/utils/prompt_registry.py,sha256=n5dQMVLBw8aJZY8Utvf67bncc25ELf6AH9BYw8_hSzo,2619
|
|
188
188
|
langtrace_python_sdk/utils/sdk_version_checker.py,sha256=F-VVVH7Fmhr5LcY0IIe-34zIi5RQcx26uuxFpPzZesM,1782
|
|
189
189
|
langtrace_python_sdk/utils/silently_fail.py,sha256=wzmvRDZppaRZgVP8C1xpq2GlWXYCwubhaeWvEbQP1SI,1196
|
|
@@ -231,8 +231,8 @@ tests/pinecone/cassettes/test_query.yaml,sha256=b5v9G3ssUy00oG63PlFUR3JErF2Js-5A
|
|
|
231
231
|
tests/pinecone/cassettes/test_upsert.yaml,sha256=neWmQ1v3d03V8WoLl8FoFeeCYImb8pxlJBWnFd_lITU,38607
|
|
232
232
|
tests/qdrant/conftest.py,sha256=9n0uHxxIjWk9fbYc4bx-uP8lSAgLBVx-cV9UjnsyCHM,381
|
|
233
233
|
tests/qdrant/test_qdrant.py,sha256=pzjAjVY2kmsmGfrI2Gs2xrolfuaNHz7l1fqGQCjp5_o,3353
|
|
234
|
-
langtrace_python_sdk-2.3.
|
|
235
|
-
langtrace_python_sdk-2.3.
|
|
236
|
-
langtrace_python_sdk-2.3.
|
|
237
|
-
langtrace_python_sdk-2.3.
|
|
238
|
-
langtrace_python_sdk-2.3.
|
|
234
|
+
langtrace_python_sdk-2.3.16.dist-info/METADATA,sha256=jC7HEgbKfYe92S1ShKRYWt4RJGnqvinOCulnnlSuc_E,15380
|
|
235
|
+
langtrace_python_sdk-2.3.16.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
236
|
+
langtrace_python_sdk-2.3.16.dist-info/entry_points.txt,sha256=1_b9-qvf2fE7uQNZcbUei9vLpFZBbbh9LrtGw95ssAo,70
|
|
237
|
+
langtrace_python_sdk-2.3.16.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
238
|
+
langtrace_python_sdk-2.3.16.dist-info/RECORD,,
|
|
File without changes
|
{langtrace_python_sdk-2.3.14.dist-info → langtrace_python_sdk-2.3.16.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.14.dist-info → langtrace_python_sdk-2.3.16.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|