langfuse-haystack 5.0.1__tar.gz → 5.0.2__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.
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/CHANGELOG.md +7 -0
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/PKG-INFO +1 -1
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/src/haystack_integrations/components/connectors/langfuse/langfuse_connector.py +2 -3
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/tests/test_langfuse_connector.py +31 -0
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/.gitignore +0 -0
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/LICENSE.txt +0 -0
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/README.md +0 -0
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/example/basic_rag.py +0 -0
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/example/chat.py +0 -0
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/example/requirements.txt +0 -0
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/pydoc/config_docusaurus.yml +0 -0
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/pyproject.toml +0 -0
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/src/haystack_integrations/components/connectors/__init__.py +0 -0
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/src/haystack_integrations/components/connectors/langfuse/__init__.py +0 -0
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/src/haystack_integrations/components/connectors/py.typed +0 -0
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/src/haystack_integrations/tracing/langfuse/__init__.py +0 -0
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/src/haystack_integrations/tracing/langfuse/tracer.py +0 -0
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/src/haystack_integrations/tracing/py.typed +0 -0
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/tests/__init__.py +0 -0
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/tests/test_tracer.py +0 -0
- {langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/tests/test_tracing.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: langfuse-haystack
|
|
3
|
-
Version: 5.0.
|
|
3
|
+
Version: 5.0.2
|
|
4
4
|
Summary: Langfuse integration for Haystack
|
|
5
5
|
Project-URL: Documentation, https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/langfuse#readme
|
|
6
6
|
Project-URL: Issues, https://github.com/deepset-ai/haystack-core-integrations/issues
|
|
@@ -228,7 +228,6 @@ class LangfuseConnector:
|
|
|
228
228
|
"""
|
|
229
229
|
init_params = data["init_parameters"]
|
|
230
230
|
deserialize_secrets_inplace(init_params, keys=["secret_key", "public_key"])
|
|
231
|
-
init_params
|
|
232
|
-
|
|
233
|
-
)
|
|
231
|
+
if init_params.get("span_handler") is not None:
|
|
232
|
+
init_params["span_handler"] = deserialize_class_instance(init_params["span_handler"])
|
|
234
233
|
return default_from_dict(cls, data)
|
|
@@ -147,6 +147,37 @@ class TestLangfuseConnector:
|
|
|
147
147
|
assert langfuse_connector.host is None
|
|
148
148
|
assert langfuse_connector.langfuse_client_kwargs is None
|
|
149
149
|
|
|
150
|
+
def test_from_dict_without_span_handler(self, monkeypatch):
|
|
151
|
+
monkeypatch.setenv("LANGFUSE_SECRET_KEY", "secret")
|
|
152
|
+
monkeypatch.setenv("LANGFUSE_PUBLIC_KEY", "public")
|
|
153
|
+
|
|
154
|
+
# All keys that would point to None (span_handler, host, langfuse_client_kwargs) are intentionally absent
|
|
155
|
+
data = {
|
|
156
|
+
"type": "haystack_integrations.components.connectors.langfuse.langfuse_connector.LangfuseConnector",
|
|
157
|
+
"init_parameters": {
|
|
158
|
+
"name": "Chat example - OpenAI",
|
|
159
|
+
"public": False,
|
|
160
|
+
"secret_key": {
|
|
161
|
+
"type": "env_var",
|
|
162
|
+
"env_vars": ["LANGFUSE_SECRET_KEY"],
|
|
163
|
+
"strict": True,
|
|
164
|
+
},
|
|
165
|
+
"public_key": {
|
|
166
|
+
"type": "env_var",
|
|
167
|
+
"env_vars": ["LANGFUSE_PUBLIC_KEY"],
|
|
168
|
+
"strict": True,
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
}
|
|
172
|
+
langfuse_connector = LangfuseConnector.from_dict(data)
|
|
173
|
+
assert langfuse_connector.name == "Chat example - OpenAI"
|
|
174
|
+
assert langfuse_connector.public is False
|
|
175
|
+
assert langfuse_connector.secret_key == Secret.from_env_var("LANGFUSE_SECRET_KEY")
|
|
176
|
+
assert langfuse_connector.public_key == Secret.from_env_var("LANGFUSE_PUBLIC_KEY")
|
|
177
|
+
assert langfuse_connector.span_handler is None
|
|
178
|
+
assert langfuse_connector.host is None
|
|
179
|
+
assert langfuse_connector.langfuse_client_kwargs is None
|
|
180
|
+
|
|
150
181
|
def test_from_dict_with_params(self, monkeypatch):
|
|
151
182
|
monkeypatch.setenv("LANGFUSE_SECRET_KEY", "secret")
|
|
152
183
|
monkeypatch.setenv("LANGFUSE_PUBLIC_KEY", "public")
|
|
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
|
{langfuse_haystack-5.0.1 → langfuse_haystack-5.0.2}/src/haystack_integrations/tracing/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|