lmnr 0.4.18b0__tar.gz → 0.4.19__tar.gz
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.
- {lmnr-0.4.18b0 → lmnr-0.4.19}/PKG-INFO +1 -1
- {lmnr-0.4.18b0 → lmnr-0.4.19}/pyproject.toml +2 -2
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tracing/tracing.py +15 -34
- {lmnr-0.4.18b0 → lmnr-0.4.19}/LICENSE +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/README.md +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/__init__.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/cli.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/sdk/__init__.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/sdk/decorators.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/sdk/evaluations.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/sdk/laminar.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/sdk/log.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/sdk/types.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/sdk/utils.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/.flake8 +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/.python-version +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/__init__.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/config/__init__.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/decorators/__init__.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/decorators/base.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/instruments.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/__init__.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/cassettes/test_association_properties/test_langchain_and_external_association_properties.yaml +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/cassettes/test_association_properties/test_langchain_association_properties.yaml +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/cassettes/test_manual/test_manual_report.yaml +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/cassettes/test_manual/test_resource_attributes.yaml +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/cassettes/test_privacy_no_prompts/test_simple_workflow.yaml +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/cassettes/test_prompt_management/test_prompt_management.yaml +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/cassettes/test_sdk_initialization/test_resource_attributes.yaml +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/cassettes/test_tasks/test_task_io_serialization_with_langchain.yaml +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/cassettes/test_workflows/test_simple_aworkflow.yaml +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/cassettes/test_workflows/test_simple_workflow.yaml +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/cassettes/test_workflows/test_streaming_workflow.yaml +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/conftest.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/test_association_properties.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/test_manual.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/test_nested_tasks.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/test_privacy_no_prompts.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/test_sdk_initialization.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/test_tasks.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tests/test_workflows.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tracing/__init__.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tracing/attributes.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tracing/content_allow_list.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/tracing/context_manager.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/utils/__init__.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/utils/in_memory_span_exporter.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/utils/json_encoder.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/utils/package_check.py +0 -0
- {lmnr-0.4.18b0 → lmnr-0.4.19}/src/lmnr/traceloop_sdk/version.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "lmnr"
|
3
|
-
version = "0.4.
|
3
|
+
version = "0.4.19"
|
4
4
|
description = "Python SDK for Laminar AI"
|
5
5
|
authors = [
|
6
6
|
{ name = "lmnr.ai", email = "founders@lmnr.ai" }
|
@@ -11,7 +11,7 @@ license = "Apache-2.0"
|
|
11
11
|
|
12
12
|
[tool.poetry]
|
13
13
|
name = "lmnr"
|
14
|
-
version = "0.4.
|
14
|
+
version = "0.4.19"
|
15
15
|
description = "Python SDK for Laminar AI"
|
16
16
|
authors = ["lmnr.ai"]
|
17
17
|
readme = "README.md"
|
@@ -131,41 +131,33 @@ class TracerWrapper(object):
|
|
131
131
|
print("Warning: OpenAI library does not exist.")
|
132
132
|
elif instrument == Instruments.ANTHROPIC:
|
133
133
|
if not init_anthropic_instrumentor(should_enrich_metrics):
|
134
|
-
print(
|
135
|
-
"Warning: Anthropic library does not exist."
|
136
|
-
)
|
134
|
+
print("Warning: Anthropic library does not exist.")
|
137
135
|
elif instrument == Instruments.COHERE:
|
138
136
|
if not init_cohere_instrumentor():
|
139
137
|
print("Warning: Cohere library does not exist.")
|
140
138
|
elif instrument == Instruments.PINECONE:
|
141
139
|
if not init_pinecone_instrumentor():
|
142
|
-
print(
|
143
|
-
"Warning: Pinecone library does not exist."
|
144
|
-
)
|
140
|
+
print("Warning: Pinecone library does not exist.")
|
145
141
|
elif instrument == Instruments.CHROMA:
|
146
142
|
if not init_chroma_instrumentor():
|
147
143
|
print("Warning: Chroma library does not exist.")
|
148
144
|
elif instrument == Instruments.GOOGLE_GENERATIVEAI:
|
149
145
|
if not init_google_generativeai_instrumentor():
|
150
|
-
print("Warning: Google Generative AI library does not exist.")
|
151
|
-
elif instrument == Instruments.LANGCHAIN:
|
152
|
-
if not init_langchain_instrumentor():
|
153
146
|
print(
|
154
|
-
"Warning:
|
147
|
+
"Warning: Google Generative AI library does not exist."
|
155
148
|
)
|
149
|
+
elif instrument == Instruments.LANGCHAIN:
|
150
|
+
if not init_langchain_instrumentor():
|
151
|
+
print("Warning: LangChain library does not exist.")
|
156
152
|
elif instrument == Instruments.MISTRAL:
|
157
153
|
if not init_mistralai_instrumentor():
|
158
|
-
print(
|
159
|
-
"Warning: MistralAI library does not exist."
|
160
|
-
)
|
154
|
+
print("Warning: MistralAI library does not exist.")
|
161
155
|
elif instrument == Instruments.OLLAMA:
|
162
156
|
if not init_ollama_instrumentor():
|
163
157
|
print("Warning: Ollama library does not exist.")
|
164
158
|
elif instrument == Instruments.LLAMA_INDEX:
|
165
159
|
if not init_llama_index_instrumentor():
|
166
|
-
print(
|
167
|
-
"Warning: LlamaIndex library does not exist."
|
168
|
-
)
|
160
|
+
print("Warning: LlamaIndex library does not exist.")
|
169
161
|
elif instrument == Instruments.MILVUS:
|
170
162
|
if not init_milvus_instrumentor():
|
171
163
|
print("Warning: Milvus library does not exist.")
|
@@ -174,14 +166,10 @@ class TracerWrapper(object):
|
|
174
166
|
print("Warning: Transformers library does not exist.")
|
175
167
|
elif instrument == Instruments.TOGETHER:
|
176
168
|
if not init_together_instrumentor():
|
177
|
-
print(
|
178
|
-
"Warning: TogetherAI library does not exist."
|
179
|
-
)
|
169
|
+
print("Warning: TogetherAI library does not exist.")
|
180
170
|
elif instrument == Instruments.REQUESTS:
|
181
171
|
if not init_requests_instrumentor():
|
182
|
-
print(
|
183
|
-
"Warning: Requests library does not exist."
|
184
|
-
)
|
172
|
+
print("Warning: Requests library does not exist.")
|
185
173
|
elif instrument == Instruments.URLLIB3:
|
186
174
|
if not init_urllib3_instrumentor():
|
187
175
|
print("Warning: urllib3 library does not exist.")
|
@@ -193,22 +181,16 @@ class TracerWrapper(object):
|
|
193
181
|
print("Warning: Bedrock library does not exist.")
|
194
182
|
elif instrument == Instruments.REPLICATE:
|
195
183
|
if not init_replicate_instrumentor():
|
196
|
-
print(
|
197
|
-
"Warning: Replicate library does not exist."
|
198
|
-
)
|
184
|
+
print("Warning: Replicate library does not exist.")
|
199
185
|
elif instrument == Instruments.VERTEXAI:
|
200
186
|
if not init_vertexai_instrumentor():
|
201
|
-
print(
|
202
|
-
"Warning: Vertex AI library does not exist."
|
203
|
-
)
|
187
|
+
print("Warning: Vertex AI library does not exist.")
|
204
188
|
elif instrument == Instruments.WATSONX:
|
205
189
|
if not init_watsonx_instrumentor():
|
206
190
|
print("Warning: Watsonx library does not exist.")
|
207
191
|
elif instrument == Instruments.WEAVIATE:
|
208
192
|
if not init_weaviate_instrumentor():
|
209
|
-
print(
|
210
|
-
"Warning: Weaviate library does not exist."
|
211
|
-
)
|
193
|
+
print("Warning: Weaviate library does not exist.")
|
212
194
|
elif instrument == Instruments.ALEPHALPHA:
|
213
195
|
if not init_alephalpha_instrumentor():
|
214
196
|
print("Warning: Aleph Alpha library does not exist.")
|
@@ -321,9 +303,7 @@ def update_association_properties(properties: dict) -> None:
|
|
321
303
|
|
322
304
|
def _set_association_properties_attributes(span, properties: dict) -> None:
|
323
305
|
for key, value in properties.items():
|
324
|
-
span.set_attribute(
|
325
|
-
f"{ASSOCIATION_PROPERTIES}.{key}", value
|
326
|
-
)
|
306
|
+
span.set_attribute(f"{ASSOCIATION_PROPERTIES}.{key}", value)
|
327
307
|
|
328
308
|
|
329
309
|
def get_span_path(span_name: str) -> str:
|
@@ -444,6 +424,7 @@ def init_anthropic_instrumentor(should_enrich_metrics: bool):
|
|
444
424
|
instrumentor = AnthropicInstrumentor(
|
445
425
|
# exception_logger=lambda e: Telemetry().log_exception(e),
|
446
426
|
enrich_token_usage=should_enrich_metrics,
|
427
|
+
upload_base64_image=None,
|
447
428
|
)
|
448
429
|
if not instrumentor.is_instrumented_by_opentelemetry:
|
449
430
|
instrumentor.instrument()
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|