langfuse-agent 2.3.2__tar.gz → 2.3.4__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.
Files changed (83) hide show
  1. {langfuse_agent-2.3.2/langfuse_agent.egg-info → langfuse_agent-2.3.4}/PKG-INFO +5 -5
  2. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/README.md +1 -1
  3. langfuse_agent-2.3.4/langfuse_agent/connector_sources.py +332 -0
  4. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/mcp_server.py +1 -1
  5. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/ontology/certification.json +0 -3
  6. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/ontology/langfuse.ttl +11 -17
  7. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/prompts/observability_specialist.json +0 -2
  8. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4/langfuse_agent.egg-info}/PKG-INFO +5 -5
  9. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent.egg-info/SOURCES.txt +2 -3
  10. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent.egg-info/entry_points.txt +0 -3
  11. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent.egg-info/requires.txt +3 -3
  12. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/pyproject.toml +4 -7
  13. langfuse_agent-2.3.4/requirements.txt +3 -0
  14. langfuse_agent-2.3.4/tests/test_default_content_surfaces.py +43 -0
  15. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/tests/test_fleet_name.py +2 -13
  16. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/tests/test_kg_ingest.py +3 -7
  17. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/tests/test_release_version.py +1 -1
  18. langfuse_agent-2.3.2/langfuse_agent/connectors/mcp_source_presets.json +0 -44
  19. langfuse_agent-2.3.2/langfuse_agent/connectors/tool_schema_fingerprints.json +0 -9
  20. langfuse_agent-2.3.2/requirements.txt +0 -3
  21. langfuse_agent-2.3.2/tests/test_connector_presets.py +0 -53
  22. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/LICENSE +0 -0
  23. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/MANIFEST.in +0 -0
  24. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/build_backend.py +0 -0
  25. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/__init__.py +0 -0
  26. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/__main__.py +0 -0
  27. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/api/__init__.py +0 -0
  28. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/api/api_client_annotation_queues.py +0 -0
  29. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/api/api_client_base.py +0 -0
  30. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/api/api_client_datasets.py +0 -0
  31. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/api/api_client_management.py +0 -0
  32. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/api/api_client_observability.py +0 -0
  33. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/api/api_client_prompts_models.py +0 -0
  34. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/api_client.py +0 -0
  35. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/auth.py +0 -0
  36. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/connectors/__init__.py +0 -0
  37. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/dependency-license-catalog.json +0 -0
  38. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/kg_ingest.py +0 -0
  39. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/langfuse_models.py +0 -0
  40. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/main_agent.md +0 -0
  41. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/mcp/__init__.py +0 -0
  42. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/mcp_config.json +0 -0
  43. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/ontology/__init__.py +0 -0
  44. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/ontology/fixtures/records.json +0 -0
  45. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/ontology/mappings/source.yaml +0 -0
  46. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/ontology/migrations/manifest.json +0 -0
  47. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/ontology/shapes/connector.shacl.ttl +0 -0
  48. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/prompts/__init__.py +0 -0
  49. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/runtime_posture.py +0 -0
  50. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/skills/__init__.py +0 -0
  51. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/skills/langfuse-agent-operations/SKILL.md +0 -0
  52. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/skills/langfuse-agent-operations/agents/openai.yaml +0 -0
  53. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/skills/langfuse-agent-operations/references/catalog.md +0 -0
  54. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/skills/langfuse-eval-datasets/SKILL.md +0 -0
  55. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/skills/langfuse-eval-datasets/WORKFLOW.md +0 -0
  56. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/skills/langfuse-prompt-management/SKILL.md +0 -0
  57. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/skills/langfuse-prompt-management/WORKFLOW.md +0 -0
  58. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/skills/langfuse-trace-analytics/SKILL.md +0 -0
  59. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/skills/langfuse-trace-analytics/WORKFLOW.md +0 -0
  60. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/tools/__init__.py +0 -0
  61. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/tools/datasets.py +0 -0
  62. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/tools/kg.py +0 -0
  63. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/tools/management.py +0 -0
  64. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/tools/observability.py +0 -0
  65. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/tools/prompts.py +0 -0
  66. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent/trace_projection.py +0 -0
  67. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent.egg-info/dependency_links.txt +0 -0
  68. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/langfuse_agent.egg-info/top_level.txt +0 -0
  69. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/setup.cfg +0 -0
  70. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/tests/test_api_parity_gate.py +0 -0
  71. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/tests/test_auth.py +0 -0
  72. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/tests/test_documentation_privacy.py +0 -0
  73. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/tests/test_init.py +0 -0
  74. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/tests/test_init_dynamics.py +0 -0
  75. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/tests/test_kg_tool.py +0 -0
  76. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/tests/test_langfuse_api.py +0 -0
  77. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/tests/test_langfuse_models.py +0 -0
  78. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/tests/test_mcp_brute_force.py +0 -0
  79. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/tests/test_mcp_server.py +0 -0
  80. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/tests/test_placeholder.py +0 -0
  81. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/tests/test_tools_dispatch_characterization.py +0 -0
  82. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/tests/test_trace_projection.py +0 -0
  83. {langfuse_agent-2.3.2 → langfuse_agent-2.3.4}/tests/test_wheel_privacy.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langfuse-agent
3
- Version: 2.3.2
3
+ Version: 2.3.4
4
4
  Summary: Agent for interacting with Langfuse Observability API
5
5
  Author: Project Contributors
6
6
  License-Expression: MIT
@@ -11,13 +11,13 @@ Classifier: Programming Language :: Python :: 3
11
11
  Requires-Python: >=3.12
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.11
14
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1
15
15
  Requires-Dist: langfuse<5,>=4
16
16
  Requires-Dist: requests>=2.34.2
17
17
  Provides-Extra: mcp
18
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.11; extra == "mcp"
18
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "mcp"
19
19
  Provides-Extra: all
20
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.11; extra == "all"
20
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "all"
21
21
  Provides-Extra: test
22
22
  Requires-Dist: pytest-xdist>=3.8.0; extra == "test"
23
23
  Requires-Dist: pytest>=9.1.1; extra == "test"
@@ -50,7 +50,7 @@ Dynamic: license-file
50
50
  ![PyPI - Wheel](https://img.shields.io/pypi/wheel/langfuse-agent)
51
51
  ![PyPI - Implementation](https://img.shields.io/pypi/implementation/langfuse-agent)
52
52
 
53
- *Version: 2.3.2*
53
+ *Version: 2.3.4*
54
54
 
55
55
  > **Documentation** — Installation, deployment, usage across the API, CLI, and MCP
56
56
  > interfaces, and guidance for provisioning the Langfuse platform are maintained in
@@ -20,7 +20,7 @@
20
20
  ![PyPI - Wheel](https://img.shields.io/pypi/wheel/langfuse-agent)
21
21
  ![PyPI - Implementation](https://img.shields.io/pypi/implementation/langfuse-agent)
22
22
 
23
- *Version: 2.3.2*
23
+ *Version: 2.3.4*
24
24
 
25
25
  > **Documentation** — Installation, deployment, usage across the API, CLI, and MCP
26
26
  > interfaces, and guidance for provisioning the Langfuse platform are maintained in
@@ -0,0 +1,332 @@
1
+ """Data sources of this connector, declared by tool name (generated by connector-ontology-map migrate).
2
+
3
+ Served live as ``connector://resources``. Regenerate by editing the declarations, not the tools.
4
+ """
5
+
6
+ # ruff: noqa: E501
7
+ from __future__ import annotations
8
+
9
+ from typing import Any
10
+
11
+ from agent_connector_sdk.ingest.live_declaration import source_meta
12
+ from agent_connector_sdk.ingest.sources import IngestSourceDeclaration, IngestSourceSpec
13
+
14
+ CONNECTOR: str = "langfuse-mcp"
15
+
16
+ SOURCES: tuple[Any, ...] = (
17
+ source_meta(
18
+ tool="langfuse_sessions_list",
19
+ source_id="langfuse-sessions",
20
+ record_type="Session",
21
+ id_field="id",
22
+ cursor_field="createdAt",
23
+ page_param="page",
24
+ page_size_param="limit",
25
+ pagination="page",
26
+ preset={
27
+ "doc_type": "session",
28
+ "metadata_fields": [
29
+ "createdAt",
30
+ "environment",
31
+ ],
32
+ "page_kind": "number",
33
+ "params_style": "args",
34
+ },
35
+ records_path="data",
36
+ server="langfuse-mcp",
37
+ text_field="id",
38
+ title_field="id",
39
+ ),
40
+ source_meta(
41
+ tool="langfuse_trace_list",
42
+ source_id="langfuse-traces",
43
+ record_type="Trace",
44
+ id_field="id",
45
+ cursor_field="timestamp",
46
+ page_param="page",
47
+ page_size_param="limit",
48
+ pagination="page",
49
+ preset={
50
+ "doc_type": "trace",
51
+ "metadata_fields": [
52
+ "timestamp",
53
+ "release",
54
+ "version",
55
+ "environment",
56
+ "tags",
57
+ ],
58
+ "page_kind": "number",
59
+ "params_style": "args",
60
+ },
61
+ records_path="data",
62
+ server="langfuse-mcp",
63
+ text_field="name",
64
+ title_field="name",
65
+ ),
66
+ )
67
+
68
+ SCHEMA_MAPPINGS: dict[str, Any] = {
69
+ "Dataset": {
70
+ "fields": {
71
+ "dataType": "xsd:string",
72
+ "endTime": "xsd:dateTime",
73
+ "environment": "xsd:string",
74
+ "latency": "xsd:decimal",
75
+ "level": "xsd:string",
76
+ "modelName": "xsd:string",
77
+ "observationType": "xsd:string",
78
+ "promptVersion": "xsd:integer",
79
+ "release": "xsd:string",
80
+ "scoreValue": "xsd:string",
81
+ "startTime": "xsd:dateTime",
82
+ "timestamp": "xsd:dateTime",
83
+ "totalCost": "xsd:decimal",
84
+ "totalTokens": "xsd:integer",
85
+ },
86
+ "ontology_class": "Dataset",
87
+ },
88
+ "DatasetRun": {
89
+ "fields": {
90
+ "dataType": "xsd:string",
91
+ "endTime": "xsd:dateTime",
92
+ "environment": "xsd:string",
93
+ "latency": "xsd:decimal",
94
+ "level": "xsd:string",
95
+ "modelName": "xsd:string",
96
+ "observationType": "xsd:string",
97
+ "promptVersion": "xsd:integer",
98
+ "release": "xsd:string",
99
+ "scoreValue": "xsd:string",
100
+ "startTime": "xsd:dateTime",
101
+ "timestamp": "xsd:dateTime",
102
+ "totalCost": "xsd:decimal",
103
+ "totalTokens": "xsd:integer",
104
+ },
105
+ "ontology_class": "Dataset",
106
+ },
107
+ "Generation": {
108
+ "fields": {
109
+ "dataType": "xsd:string",
110
+ "endTime": "xsd:dateTime",
111
+ "environment": "xsd:string",
112
+ "latency": "xsd:decimal",
113
+ "level": "xsd:string",
114
+ "modelName": "xsd:string",
115
+ "observationType": "xsd:string",
116
+ "promptVersion": "xsd:integer",
117
+ "release": "xsd:string",
118
+ "scoreValue": "xsd:string",
119
+ "startTime": "xsd:dateTime",
120
+ "timestamp": "xsd:dateTime",
121
+ "totalCost": "xsd:decimal",
122
+ "totalTokens": "xsd:integer",
123
+ },
124
+ "ontology_class": "Observation",
125
+ },
126
+ "Model": {
127
+ "fields": {
128
+ "dataType": "xsd:string",
129
+ "endTime": "xsd:dateTime",
130
+ "environment": "xsd:string",
131
+ "latency": "xsd:decimal",
132
+ "level": "xsd:string",
133
+ "modelName": "xsd:string",
134
+ "observationType": "xsd:string",
135
+ "promptVersion": "xsd:integer",
136
+ "release": "xsd:string",
137
+ "scoreValue": "xsd:string",
138
+ "startTime": "xsd:dateTime",
139
+ "timestamp": "xsd:dateTime",
140
+ "totalCost": "xsd:decimal",
141
+ "totalTokens": "xsd:integer",
142
+ },
143
+ "ontology_class": None,
144
+ },
145
+ "Observation": {
146
+ "fields": {
147
+ "dataType": "xsd:string",
148
+ "endTime": "xsd:dateTime",
149
+ "environment": "xsd:string",
150
+ "latency": "xsd:decimal",
151
+ "level": "xsd:string",
152
+ "modelName": "xsd:string",
153
+ "observationType": "xsd:string",
154
+ "promptVersion": "xsd:integer",
155
+ "release": "xsd:string",
156
+ "scoreValue": "xsd:string",
157
+ "startTime": "xsd:dateTime",
158
+ "timestamp": "xsd:dateTime",
159
+ "totalCost": "xsd:decimal",
160
+ "totalTokens": "xsd:integer",
161
+ },
162
+ "ontology_class": None,
163
+ },
164
+ "Prompt": {
165
+ "fields": {
166
+ "dataType": "xsd:string",
167
+ "endTime": "xsd:dateTime",
168
+ "environment": "xsd:string",
169
+ "latency": "xsd:decimal",
170
+ "level": "xsd:string",
171
+ "modelName": "xsd:string",
172
+ "observationType": "xsd:string",
173
+ "promptVersion": "xsd:integer",
174
+ "release": "xsd:string",
175
+ "scoreValue": "xsd:string",
176
+ "startTime": "xsd:dateTime",
177
+ "timestamp": "xsd:dateTime",
178
+ "totalCost": "xsd:decimal",
179
+ "totalTokens": "xsd:integer",
180
+ },
181
+ "ontology_class": None,
182
+ },
183
+ "Score": {
184
+ "fields": {
185
+ "dataType": "xsd:string",
186
+ "endTime": "xsd:dateTime",
187
+ "environment": "xsd:string",
188
+ "latency": "xsd:decimal",
189
+ "level": "xsd:string",
190
+ "modelName": "xsd:string",
191
+ "observationType": "xsd:string",
192
+ "promptVersion": "xsd:integer",
193
+ "release": "xsd:string",
194
+ "scoreValue": "xsd:string",
195
+ "startTime": "xsd:dateTime",
196
+ "timestamp": "xsd:dateTime",
197
+ "totalCost": "xsd:decimal",
198
+ "totalTokens": "xsd:integer",
199
+ },
200
+ "ontology_class": None,
201
+ },
202
+ "ScoreConfig": {
203
+ "fields": {
204
+ "dataType": "xsd:string",
205
+ "endTime": "xsd:dateTime",
206
+ "environment": "xsd:string",
207
+ "latency": "xsd:decimal",
208
+ "level": "xsd:string",
209
+ "modelName": "xsd:string",
210
+ "observationType": "xsd:string",
211
+ "promptVersion": "xsd:integer",
212
+ "release": "xsd:string",
213
+ "scoreValue": "xsd:string",
214
+ "startTime": "xsd:dateTime",
215
+ "timestamp": "xsd:dateTime",
216
+ "totalCost": "xsd:decimal",
217
+ "totalTokens": "xsd:integer",
218
+ },
219
+ "ontology_class": None,
220
+ },
221
+ "Session": {
222
+ "fields": {
223
+ "dataType": "xsd:string",
224
+ "endTime": "xsd:dateTime",
225
+ "environment": "xsd:string",
226
+ "latency": "xsd:decimal",
227
+ "level": "xsd:string",
228
+ "modelName": "xsd:string",
229
+ "observationType": "xsd:string",
230
+ "promptVersion": "xsd:integer",
231
+ "release": "xsd:string",
232
+ "scoreValue": "xsd:string",
233
+ "startTime": "xsd:dateTime",
234
+ "timestamp": "xsd:dateTime",
235
+ "totalCost": "xsd:decimal",
236
+ "totalTokens": "xsd:integer",
237
+ },
238
+ "ontology_class": None,
239
+ },
240
+ "Trace": {
241
+ "fields": {
242
+ "dataType": "xsd:string",
243
+ "endTime": "xsd:dateTime",
244
+ "environment": "xsd:string",
245
+ "latency": "xsd:decimal",
246
+ "level": "xsd:string",
247
+ "modelName": "xsd:string",
248
+ "observationType": "xsd:string",
249
+ "promptVersion": "xsd:integer",
250
+ "release": "xsd:string",
251
+ "scoreValue": "xsd:string",
252
+ "startTime": "xsd:dateTime",
253
+ "timestamp": "xsd:dateTime",
254
+ "totalCost": "xsd:decimal",
255
+ "totalTokens": "xsd:integer",
256
+ },
257
+ "ontology_class": None,
258
+ },
259
+ }
260
+
261
+ RESOURCES: tuple[dict[str, str], ...] = (
262
+ {
263
+ "id_prefix": "dataset",
264
+ "label": "Dataset",
265
+ "name": "Dataset",
266
+ },
267
+ {
268
+ "id_prefix": "datasetrun",
269
+ "label": "Dataset Run",
270
+ "name": "DatasetRun",
271
+ },
272
+ {
273
+ "id_prefix": "generation",
274
+ "label": "Generation",
275
+ "name": "Generation",
276
+ },
277
+ {
278
+ "id_prefix": "model",
279
+ "label": "Model",
280
+ "name": "Model",
281
+ },
282
+ {
283
+ "id_prefix": "observation",
284
+ "label": "Observation",
285
+ "name": "Observation",
286
+ },
287
+ {
288
+ "id_prefix": "prompt",
289
+ "label": "Prompt",
290
+ "name": "Prompt",
291
+ },
292
+ {
293
+ "id_prefix": "score",
294
+ "label": "Score",
295
+ "name": "Score",
296
+ },
297
+ {
298
+ "id_prefix": "scoreconfig",
299
+ "label": "Score Config",
300
+ "name": "ScoreConfig",
301
+ },
302
+ {
303
+ "id_prefix": "session",
304
+ "label": "Session",
305
+ "name": "Session",
306
+ },
307
+ {
308
+ "id_prefix": "trace",
309
+ "label": "Trace",
310
+ "name": "Trace",
311
+ },
312
+ )
313
+
314
+
315
+ def declaration() -> IngestSourceDeclaration:
316
+ """The declaration the server assembles from this module."""
317
+ specs: list[IngestSourceSpec] = []
318
+ for item in SOURCES:
319
+ for entry in item["connector_sources"]:
320
+ body: dict[str, Any] = {
321
+ k: v for k, v in entry.items() if k not in ("tool", "mapping")
322
+ }
323
+ spec = {**body, "tools": (entry["tool"],)}
324
+ specs.append(IngestSourceSpec.model_validate(spec))
325
+ return IngestSourceDeclaration.model_validate(
326
+ {
327
+ "connector": CONNECTOR,
328
+ "sources": specs,
329
+ "schema_mappings": SCHEMA_MAPPINGS,
330
+ "resources": RESOURCES,
331
+ }
332
+ )
@@ -36,7 +36,7 @@ from langfuse_agent.tools.management import register_langfuse_management_tools
36
36
  from langfuse_agent.tools.observability import register_langfuse_observability_tools
37
37
  from langfuse_agent.tools.prompts import register_langfuse_prompts_models_tools
38
38
 
39
- __version__ = "2.3.2"
39
+ __version__ = "2.3.4"
40
40
 
41
41
  logger = get_logger(name="langfuse-agent")
42
42
  logger.setLevel(logging.INFO)
@@ -1,9 +1,6 @@
1
1
  {
2
2
  "api_version": "arbora.io/v1",
3
3
  "artifacts": {
4
- "connector_manifest.yml": "c6ed5e467bb954bf5b979bc6d22c4461db43b5059e7aced966a079fb0147f270",
5
- "langfuse_agent/connectors/mcp_source_presets.json": "475f1d9c5427e982c44397c52d5daf6195189fc7c1e61b59ff3c3fbe7cbfc222",
6
- "langfuse_agent/connectors/tool_schema_fingerprints.json": "7035f790a5b3f47428c7a019e27606ac760bd37adc814f4d2e9275395218554e",
7
4
  "langfuse_agent/ontology/fixtures/records.json": "45426db59590ddb6e6f72b2296ceefd87236209488199ca4ab36f700f5e08df2",
8
5
  "langfuse_agent/ontology/langfuse.ttl": "443ac809e5801ca6bc88a600c4926e0373f26261eac132860794e0751a01a185",
9
6
  "langfuse_agent/ontology/mappings/source.yaml": "6ef844f6a5dedc4ab9362bddc19d4880b0206bd1bbe5d39cfb08b585a7e987b2",
@@ -19,18 +19,16 @@
19
19
  rdfs:label "Trace" ;
20
20
  rdfs:comment "A single top-level execution captured by Langfuse — the root of a tree of observations, attributed to a user and grouped into a session (langfuse_observability trace_list/trace_get)." .
21
21
 
22
- :Observation a owl:Class ;
23
- rdfs:label "Observation" ;
24
- rdfs:comment "A node inside a trace's execution tree — a SPAN, EVENT or GENERATION with a start/end time, level and status (langfuse_observability observations_get_many)." .
22
+ :Observation a owl:Class .
23
+
25
24
 
26
25
  :Generation a owl:Class ;
27
26
  rdfs:subClassOf :Observation ;
28
27
  rdfs:label "Generation" ;
29
28
  rdfs:comment "An LLM generation observation (type=GENERATION): a model call carrying model name, model parameters, token usage and cost." .
30
29
 
31
- :Session a owl:Class ;
32
- rdfs:label "Session" ;
33
- rdfs:comment "A grouping of related traces representing one conversation or user session (langfuse_observability sessions_list/sessions_get)." .
30
+ :Session a owl:Class .
31
+
34
32
 
35
33
  :Score a owl:Class ;
36
34
  rdfs:label "Score" ;
@@ -40,21 +38,18 @@
40
38
  rdfs:label "Score Config" ;
41
39
  rdfs:comment "The schema/definition of a score: its name, data type and allowed range or categories (langfuse_observability score_configs_get)." .
42
40
 
43
- :Dataset a owl:Class ;
44
- rdfs:label "Dataset" ;
45
- rdfs:comment "A named collection of dataset items used as an evaluation/test set (langfuse_datasets datasets_list/datasets_get)." .
41
+ :Dataset a owl:Class .
42
+
46
43
 
47
44
  :DatasetRun a owl:Class ;
48
45
  rdfs:label "Dataset Run" ;
49
46
  rdfs:comment "One execution of a dataset against a system under test, aggregating run items and their scores (langfuse_datasets datasets_get_runs)." .
50
47
 
51
- :Prompt a owl:Class ;
52
- rdfs:label "Prompt" ;
53
- rdfs:comment "A versioned, labelled prompt template managed in the Langfuse prompt registry (langfuse_prompts_models prompts_get/prompts_list)." .
48
+ :Prompt a owl:Class .
49
+
50
+
51
+ :Model a owl:Class .
54
52
 
55
- :Model a owl:Class ;
56
- rdfs:label "Model" ;
57
- rdfs:comment "A model definition with a match pattern and unit/pricing used to compute generation cost (langfuse_prompts_models models_list/models_get)." .
58
53
 
59
54
  # --- links (owl:ObjectProperty) ---
60
55
 
@@ -188,5 +183,4 @@
188
183
  sessions, scores and score configs, datasets and dataset runs, prompts and models,
189
184
  with their tree, attribution, evaluation and cost relationships — federated into the
190
185
  agent-connector-sdk knowledge-graph hub. Reuses the shared :Person class for the end-user
191
- a trace is attributed to.""" ;
192
- owl:imports <http://knuckles.team/kg> .
186
+ a trace is attributed to.""" .
@@ -4,8 +4,6 @@
4
4
  "schema_version": "1.0",
5
5
  "prompt_version": "0.1.0",
6
6
  "source": "langfuse-agent",
7
- "extends": "agent-connector-sdk:base",
8
- "compose": "append",
9
7
  "description": "Langfuse LLM-observability specialist: trace analytics, evaluation datasets/scores, and the prompt registry over the langfuse-agent MCP server.",
10
8
  "metadata": {
11
9
  "topic": "Langfuse LLM Observability",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langfuse-agent
3
- Version: 2.3.2
3
+ Version: 2.3.4
4
4
  Summary: Agent for interacting with Langfuse Observability API
5
5
  Author: Project Contributors
6
6
  License-Expression: MIT
@@ -11,13 +11,13 @@ Classifier: Programming Language :: Python :: 3
11
11
  Requires-Python: >=3.12
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.11
14
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1
15
15
  Requires-Dist: langfuse<5,>=4
16
16
  Requires-Dist: requests>=2.34.2
17
17
  Provides-Extra: mcp
18
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.11; extra == "mcp"
18
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "mcp"
19
19
  Provides-Extra: all
20
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.11; extra == "all"
20
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "all"
21
21
  Provides-Extra: test
22
22
  Requires-Dist: pytest-xdist>=3.8.0; extra == "test"
23
23
  Requires-Dist: pytest>=9.1.1; extra == "test"
@@ -50,7 +50,7 @@ Dynamic: license-file
50
50
  ![PyPI - Wheel](https://img.shields.io/pypi/wheel/langfuse-agent)
51
51
  ![PyPI - Implementation](https://img.shields.io/pypi/implementation/langfuse-agent)
52
52
 
53
- *Version: 2.3.2*
53
+ *Version: 2.3.4*
54
54
 
55
55
  > **Documentation** — Installation, deployment, usage across the API, CLI, and MCP
56
56
  > interfaces, and guidance for provisioning the Langfuse platform are maintained in
@@ -8,6 +8,7 @@ langfuse_agent/__init__.py
8
8
  langfuse_agent/__main__.py
9
9
  langfuse_agent/api_client.py
10
10
  langfuse_agent/auth.py
11
+ langfuse_agent/connector_sources.py
11
12
  langfuse_agent/dependency-license-catalog.json
12
13
  langfuse_agent/kg_ingest.py
13
14
  langfuse_agent/langfuse_models.py
@@ -30,8 +31,6 @@ langfuse_agent/api/api_client_management.py
30
31
  langfuse_agent/api/api_client_observability.py
31
32
  langfuse_agent/api/api_client_prompts_models.py
32
33
  langfuse_agent/connectors/__init__.py
33
- langfuse_agent/connectors/mcp_source_presets.json
34
- langfuse_agent/connectors/tool_schema_fingerprints.json
35
34
  langfuse_agent/mcp/__init__.py
36
35
  langfuse_agent/ontology/__init__.py
37
36
  langfuse_agent/ontology/certification.json
@@ -60,7 +59,7 @@ langfuse_agent/tools/observability.py
60
59
  langfuse_agent/tools/prompts.py
61
60
  tests/test_api_parity_gate.py
62
61
  tests/test_auth.py
63
- tests/test_connector_presets.py
62
+ tests/test_default_content_surfaces.py
64
63
  tests/test_documentation_privacy.py
65
64
  tests/test_fleet_name.py
66
65
  tests/test_init.py
@@ -10,8 +10,5 @@ langfuse-agent = langfuse_agent.prompts
10
10
  [agent_connector_sdk.skill_providers]
11
11
  langfuse-agent = langfuse_agent.skills
12
12
 
13
- [agent_connector_sdk.source_connector_providers]
14
- langfuse-agent = langfuse_agent.connectors
15
-
16
13
  [console_scripts]
17
14
  langfuse-mcp = langfuse_agent.mcp_server:mcp_server
@@ -1,16 +1,16 @@
1
- agent-connector-sdk[mcp]<1.0.0,>=0.3.11
1
+ agent-connector-sdk[mcp]<1.0.0,>=0.4.1
2
2
  langfuse<5,>=4
3
3
  requests>=2.34.2
4
4
 
5
5
  [all]
6
- agent-connector-sdk[mcp]<1.0.0,>=0.3.11
6
+ agent-connector-sdk[mcp]<1.0.0,>=0.4.1
7
7
 
8
8
  [docs]
9
9
  mkdocs>=1.6.1
10
10
  mkdocs-material>=9.7.7
11
11
 
12
12
  [mcp]
13
- agent-connector-sdk[mcp]<1.0.0,>=0.3.11
13
+ agent-connector-sdk[mcp]<1.0.0,>=0.4.1
14
14
 
15
15
  [test]
16
16
  pytest-xdist>=3.8.0
@@ -5,19 +5,19 @@ backend-path = ["."]
5
5
 
6
6
  [project]
7
7
  name = "langfuse-agent"
8
- version = "2.3.2"
8
+ version = "2.3.4"
9
9
  description = "Agent for interacting with Langfuse Observability API"
10
10
  readme = "README.md"
11
11
  classifiers = [ "Development Status :: 4 - Beta", "Environment :: Console", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3",]
12
12
  requires-python = ">=3.12"
13
- dependencies = [ "agent-connector-sdk[mcp]>=0.3.11,<1.0.0", "langfuse>=4,<5", "requests>=2.34.2",]
13
+ dependencies = [ "agent-connector-sdk[mcp]>=0.4.1,<1.0.0", "langfuse>=4,<5", "requests>=2.34.2",]
14
14
  license = "MIT"
15
15
  [[project.authors]]
16
16
  name = "Project Contributors"
17
17
 
18
18
  [project.optional-dependencies]
19
- mcp = [ "agent-connector-sdk[mcp]>=0.3.11,<1.0.0",]
20
- all = [ "agent-connector-sdk[mcp]>=0.3.11,<1.0.0",]
19
+ mcp = [ "agent-connector-sdk[mcp]>=0.4.1,<1.0.0",]
20
+ all = [ "agent-connector-sdk[mcp]>=0.4.1,<1.0.0",]
21
21
  test = [
22
22
  "pytest-xdist>=3.8.0", "pytest>=9.1.1", "pytest-asyncio>=1.4.0", "pytest-cov>=7.1.0",]
23
23
  docs = [
@@ -34,9 +34,6 @@ langfuse-agent = "langfuse_agent.skills"
34
34
  [project.entry-points."agent_connector_sdk.ontology_providers"]
35
35
  langfuse-agent = "langfuse_agent.ontology"
36
36
 
37
- [project.entry-points."agent_connector_sdk.source_connector_providers"]
38
- langfuse-agent = "langfuse_agent.connectors"
39
-
40
37
  [project.entry-points."agent_connector_sdk.prompt_providers"]
41
38
  langfuse-agent = "langfuse_agent.prompts"
42
39
 
@@ -0,0 +1,3 @@
1
+ agent-connector-sdk[mcp]>=0.4.1,<1.0.0
2
+ langfuse>=4,<5
3
+ requests>=2.34.2
@@ -0,0 +1,43 @@
1
+ """CONN-LANGFUSE-AGENT-CONNECTOR-CONTENT-R001: the server lists its packaged skills, ontology and prompts by default."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import asyncio
6
+ import importlib
7
+ from pathlib import Path
8
+
9
+ import pytest
10
+ from fastmcp import Client
11
+
12
+ PACKAGE = "langfuse_agent"
13
+ ROOT = Path(list(importlib.import_module(PACKAGE).__path__)[0])
14
+
15
+ pytestmark = pytest.mark.spec("CONN-LANGFUSE-AGENT-CONNECTOR-CONTENT-R001")
16
+
17
+
18
+ def _server():
19
+ namespace = {"__name__": PACKAGE + ".mcp_server"}
20
+ exec(
21
+ "from agent_connector_sdk.mcp.server import create_mcp_server\n"
22
+ "result = create_mcp_server('langfuse-mcp', version='0', command_args=[])",
23
+ namespace,
24
+ )
25
+ return namespace["result"][1]
26
+
27
+
28
+ async def _listings():
29
+ async with Client(_server()) as client:
30
+ resources = {str(r.uri) for r in await client.list_resources()}
31
+ prompts = {p.name for p in await client.list_prompts()}
32
+ return resources, prompts
33
+
34
+
35
+ def test_default_content_surfaces() -> None:
36
+ resources, prompts = asyncio.run(_listings())
37
+ if list(ROOT.glob("skills/*/SKILL.md")):
38
+ assert any(u.startswith("skill://") for u in resources)
39
+ if list(ROOT.glob("ontology/*.ttl")):
40
+ assert any(u.startswith("ontology://langfuse-mcp/") for u in resources)
41
+ for path in ROOT.glob("prompts/*.json"):
42
+ if not path.name.startswith("_"):
43
+ assert path.stem in prompts
@@ -2,9 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from agent_connector_sdk.connector_identity import connector_name
5
6
  import ast
6
- import json
7
- import re
8
7
  import tomllib
9
8
  from pathlib import Path
10
9
 
@@ -38,16 +37,6 @@ def test_connector_name_is_the_fleet_name() -> None:
38
37
  assert pyproject["project"]["entry-points"]["agent_connector_sdk.connector"] == {
39
38
  FLEET: "langfuse_agent"
40
39
  }
41
- manifest_path = PACKAGE / "connector_manifest.yml"
42
- if not manifest_path.is_file():
43
- manifest_path = ROOT / "connector_manifest.yml"
44
- manifest = manifest_path.read_text(encoding="utf-8")
45
- match = re.search(r'^\s*"?connector"?\s*:\s*"?([^"\s,]+)', manifest, re.MULTILINE)
46
- assert match is not None and match.group(1) == FLEET
47
- fingerprints = PACKAGE / "connectors" / "tool_schema_fingerprints.json"
48
- if fingerprints.is_file():
49
- assert (
50
- json.loads(fingerprints.read_text(encoding="utf-8"))["connector"] == FLEET
51
- )
40
+ assert connector_name("langfuse_agent") == FLEET
52
41
  for module in sorted(PACKAGE.glob("*.py")):
53
42
  assert all(name == FLEET for name in _call_connectors(module)), module.name
@@ -114,7 +114,7 @@ async def test_ingest_entities_writes_nodes_and_edges(ingest):
114
114
  }
115
115
  assert len(request.relationships) == 1
116
116
  assert request.relationships[0].relation_reference.endswith(
117
- "resources/Trace/relations/inSession"
117
+ "relations/Trace/inSession"
118
118
  )
119
119
 
120
120
 
@@ -143,9 +143,7 @@ async def test_ingest_traces_maps_trace_session_and_user(ingest):
143
143
  assert "sess-9" not in persisted
144
144
  assert "alice" not in persisted
145
145
  assert (
146
- transport.requests[0]
147
- .relationships[0]
148
- .relation_reference.endswith("relations/inSession")
146
+ transport.requests[0].relationships[0].relation_reference.endswith("/inSession")
149
147
  )
150
148
 
151
149
 
@@ -255,9 +253,7 @@ async def test_ingest_sessions_and_scores(ingest):
255
253
  assert res2 == {"nodes": 1, "edges": 1}
256
254
  assert _record_of_type(transport2, "Score").payload["scoreValue"] == "0.9"
257
255
  assert (
258
- transport2.requests[0]
259
- .relationships[0]
260
- .relation_reference.endswith("relations/scores")
256
+ transport2.requests[0].relationships[0].relation_reference.endswith("/scores")
261
257
  )
262
258
 
263
259
 
@@ -8,7 +8,7 @@ from pathlib import Path
8
8
  import tomllib
9
9
 
10
10
  ROOT = Path(__file__).resolve().parents[1]
11
- EXPECTED_VERSION = "2.3.2"
11
+ EXPECTED_VERSION = "2.3.4"
12
12
 
13
13
 
14
14
  def test_release_version_is_consistent_across_runtime_and_metadata() -> None:
@@ -1,44 +0,0 @@
1
- {
2
- "_comment": "Tier-1 mcp_tool source presets for langfuse-agent (AU-KG.ingest.mcp-tool-connector). Sync Langfuse observability records into the KG via the langfuse-agent MCP server. Native typed-node ingestion is handled by langfuse_agent.kg_ingest / the langfuse_ingest tool; these presets cover the generic mcp_tool document path. Contributed presets win over the central MCP_TOOL_PRESETS.",
3
- "langfuse-traces": {
4
- "server": "langfuse-mcp",
5
- "tool": "langfuse_trace_list",
6
- "params_style": "args",
7
- "records_path": "data",
8
- "id_field": "id",
9
- "title_field": "name",
10
- "text_field": "name",
11
- "updated_field": "timestamp",
12
- "metadata_fields": [
13
- "timestamp",
14
- "release",
15
- "version",
16
- "environment",
17
- "tags"
18
- ],
19
- "pagination": "page",
20
- "page_kind": "number",
21
- "page_param": "page",
22
- "page_size_param": "limit",
23
- "doc_type": "trace"
24
- },
25
- "langfuse-sessions": {
26
- "server": "langfuse-mcp",
27
- "tool": "langfuse_sessions_list",
28
- "params_style": "args",
29
- "records_path": "data",
30
- "id_field": "id",
31
- "title_field": "id",
32
- "text_field": "id",
33
- "updated_field": "createdAt",
34
- "metadata_fields": [
35
- "createdAt",
36
- "environment"
37
- ],
38
- "pagination": "page",
39
- "page_kind": "number",
40
- "page_param": "page",
41
- "page_size_param": "limit",
42
- "doc_type": "session"
43
- }
44
- }
@@ -1,9 +0,0 @@
1
- {
2
- "algorithm": "agent-connector-sdk:mcp-tool-contract-compat:v2",
3
- "connector": "langfuse-mcp",
4
- "schema_version": "1",
5
- "tools": {
6
- "langfuse_sessions_list": "688d08d0b37f3eeeedf08fe192d3fca158f962440af5fe00e661229b54437540",
7
- "langfuse_trace_list": "2d35be15a72f555eb9dd5aa48fed046014cf76aa20c7f0d2928b5095514d2140"
8
- }
9
- }
@@ -1,3 +0,0 @@
1
- agent-connector-sdk[mcp]>=0.2.1,<1.0.0
2
- langfuse>=4,<5
3
- requests>=2.34.2
@@ -1,53 +0,0 @@
1
- """Current-only privacy and pagination contracts for MCP source presets."""
2
-
3
- from __future__ import annotations
4
-
5
- import hashlib
6
- import json
7
- from pathlib import Path
8
-
9
- import yaml
10
-
11
- ROOT = Path(__file__).resolve().parents[1]
12
- PRESETS = ROOT / "langfuse_agent" / "connectors" / "mcp_source_presets.json"
13
- CERTIFICATION = ROOT / "langfuse_agent" / "ontology" / "certification.json"
14
- SENSITIVE_FIELDS = {"input", "output", "metadata", "userId", "sessionId"}
15
-
16
-
17
- def _presets() -> dict[str, dict]:
18
- value = json.loads(PRESETS.read_text(encoding="utf-8"))
19
- return {name: preset for name, preset in value.items() if not name.startswith("_")}
20
-
21
-
22
- def test_source_presets_use_current_pagination_enum() -> None:
23
- for preset in _presets().values():
24
- assert preset["pagination"] == "page"
25
- assert preset["page_kind"] == "number"
26
-
27
-
28
- def test_source_presets_exclude_raw_observability_content() -> None:
29
- presets = _presets()
30
-
31
- assert presets["langfuse-traces"]["text_field"] == "name"
32
- assert presets["langfuse-sessions"]["text_field"] == "id"
33
- for preset in presets.values():
34
- assert preset["metadata_fields"]
35
- assert SENSITIVE_FIELDS.isdisjoint(preset["metadata_fields"])
36
- assert preset["text_field"] not in SENSITIVE_FIELDS
37
-
38
-
39
- def test_signed_manifest_embeds_the_current_source_presets() -> None:
40
- manifest = yaml.safe_load((ROOT / "connector_manifest.yml").read_text("utf-8"))
41
- signed = {item["preset"]: item["raw"] for item in manifest["sync"]}
42
-
43
- assert signed == _presets()
44
-
45
-
46
- def test_source_preset_digest_is_attested() -> None:
47
- certification = json.loads(CERTIFICATION.read_text(encoding="utf-8"))
48
- relative = PRESETS.relative_to(ROOT).as_posix()
49
-
50
- assert (
51
- certification["artifacts"][relative]
52
- == hashlib.sha256(PRESETS.read_bytes()).hexdigest()
53
- )
File without changes
File without changes