monocle-apptrace 0.4.0b2__py3-none-any.whl → 0.4.1__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.
Potentially problematic release.
This version of monocle-apptrace might be problematic. Click here for more details.
- monocle_apptrace/instrumentation/__init__.py +2 -1
- monocle_apptrace/instrumentation/common/constants.py +3 -0
- monocle_apptrace/instrumentation/common/instrumentor.py +1 -1
- monocle_apptrace/instrumentation/common/span_handler.py +8 -6
- monocle_apptrace/instrumentation/common/utils.py +33 -2
- monocle_apptrace/instrumentation/common/wrapper.py +59 -79
- monocle_apptrace/instrumentation/common/wrapper_method.py +5 -1
- monocle_apptrace/instrumentation/metamodel/anthropic/_helper.py +29 -4
- monocle_apptrace/instrumentation/metamodel/anthropic/entities/inference.py +12 -2
- monocle_apptrace/instrumentation/metamodel/azfunc/_helper.py +78 -0
- monocle_apptrace/instrumentation/metamodel/azfunc/entities/http.py +51 -0
- monocle_apptrace/instrumentation/metamodel/azfunc/methods.py +23 -0
- monocle_apptrace/instrumentation/metamodel/azfunc/wrapper.py +23 -0
- monocle_apptrace/instrumentation/metamodel/azureaiinference/__init__.py +1 -0
- monocle_apptrace/instrumentation/metamodel/azureaiinference/_helper.py +216 -0
- monocle_apptrace/instrumentation/metamodel/azureaiinference/entities/inference.py +208 -0
- monocle_apptrace/instrumentation/metamodel/azureaiinference/methods.py +23 -0
- monocle_apptrace/instrumentation/metamodel/botocore/_helper.py +42 -17
- monocle_apptrace/instrumentation/metamodel/botocore/entities/inference.py +11 -3
- monocle_apptrace/instrumentation/metamodel/flask/_helper.py +1 -1
- monocle_apptrace/instrumentation/metamodel/haystack/_helper.py +20 -12
- monocle_apptrace/instrumentation/metamodel/haystack/entities/inference.py +10 -2
- monocle_apptrace/instrumentation/metamodel/langchain/_helper.py +19 -13
- monocle_apptrace/instrumentation/metamodel/langchain/entities/inference.py +10 -2
- monocle_apptrace/instrumentation/metamodel/llamaindex/_helper.py +21 -13
- monocle_apptrace/instrumentation/metamodel/llamaindex/entities/inference.py +10 -2
- monocle_apptrace/instrumentation/metamodel/openai/_helper.py +31 -10
- monocle_apptrace/instrumentation/metamodel/openai/entities/inference.py +12 -1
- monocle_apptrace/instrumentation/metamodel/teamsai/_helper.py +50 -4
- monocle_apptrace/instrumentation/metamodel/teamsai/entities/inference/actionplanner_output_processor.py +32 -12
- monocle_apptrace/instrumentation/metamodel/teamsai/methods.py +30 -17
- monocle_apptrace/instrumentation/metamodel/teamsai/sample.json +448 -0
- {monocle_apptrace-0.4.0b2.dist-info → monocle_apptrace-0.4.1.dist-info}/METADATA +21 -18
- {monocle_apptrace-0.4.0b2.dist-info → monocle_apptrace-0.4.1.dist-info}/RECORD +37 -28
- {monocle_apptrace-0.4.0b2.dist-info → monocle_apptrace-0.4.1.dist-info}/WHEEL +0 -0
- {monocle_apptrace-0.4.0b2.dist-info → monocle_apptrace-0.4.1.dist-info}/licenses/LICENSE +0 -0
- {monocle_apptrace-0.4.0b2.dist-info → monocle_apptrace-0.4.1.dist-info}/licenses/NOTICE +0 -0
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
[{
|
|
2
|
+
"name": "openai.resources.chat.completions.completions.AsyncCompletions",
|
|
3
|
+
"context": {
|
|
4
|
+
"trace_id": "0x46d6c29b989a9dde96401fc9903e13d1",
|
|
5
|
+
"span_id": "0x5f9c461a6d3d795a",
|
|
6
|
+
"trace_state": "[]"
|
|
7
|
+
},
|
|
8
|
+
"kind": "SpanKind.INTERNAL",
|
|
9
|
+
"parent_id": "0x0206a417e77268a6",
|
|
10
|
+
"start_time": "2025-06-06T08:59:50.781557Z",
|
|
11
|
+
"end_time": "2025-06-06T09:00:00.682278Z",
|
|
12
|
+
"status": {
|
|
13
|
+
"status_code": "OK"
|
|
14
|
+
},
|
|
15
|
+
"attributes": {
|
|
16
|
+
"monocle_apptrace.version": "0.4.0",
|
|
17
|
+
"monocle_apptrace.language": "python",
|
|
18
|
+
"span_source": "c:\\Users\\BHLP0106\\Downloads\\test_teams_ai_bot\\teams-ai-basic-bot\\.venv\\Lib\\site-packages\\teams\\ai\\models\\openai_model.py:237",
|
|
19
|
+
"workflow.name": "teams-ai-bot",
|
|
20
|
+
"span.type": "inference.modelapi",
|
|
21
|
+
"scope.teams.channel.channel_id": "msteams",
|
|
22
|
+
"scope.msteams.activity.type": "message",
|
|
23
|
+
"scope.msteams.conversation.id": "personal-chat-id",
|
|
24
|
+
"scope.msteams.conversation.type": "personal",
|
|
25
|
+
"scope.msteams.conversation.name": "",
|
|
26
|
+
"scope.msteams.user.from_property.id": "user-id-0",
|
|
27
|
+
"scope.msteams.user.from_property.name": "Alex Wilber",
|
|
28
|
+
"scope.msteams.user.from_property.role": "",
|
|
29
|
+
"scope.msteams.recipient.id": "00000000-0000-0000-0000-00000000000011",
|
|
30
|
+
"scope.msteams.channel_data.tenant.id": "00000000-0000-0000-0000-0000000000001"
|
|
31
|
+
},
|
|
32
|
+
"events": [],
|
|
33
|
+
"links": [],
|
|
34
|
+
"resource": {
|
|
35
|
+
"attributes": {
|
|
36
|
+
"service.name": "teams-ai-bot"
|
|
37
|
+
},
|
|
38
|
+
"schema_url": ""
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
,{
|
|
43
|
+
"name": "teams.ai.models.openai_model.OpenAIModel",
|
|
44
|
+
"context": {
|
|
45
|
+
"trace_id": "0x46d6c29b989a9dde96401fc9903e13d1",
|
|
46
|
+
"span_id": "0x0206a417e77268a6",
|
|
47
|
+
"trace_state": "[]"
|
|
48
|
+
},
|
|
49
|
+
"kind": "SpanKind.INTERNAL",
|
|
50
|
+
"parent_id": "0x989ef3e7186f39cb",
|
|
51
|
+
"start_time": "2025-06-06T08:59:50.776558Z",
|
|
52
|
+
"end_time": "2025-06-06T09:00:00.682278Z",
|
|
53
|
+
"status": {
|
|
54
|
+
"status_code": "OK"
|
|
55
|
+
},
|
|
56
|
+
"attributes": {
|
|
57
|
+
"monocle_apptrace.version": "0.4.0",
|
|
58
|
+
"monocle_apptrace.language": "python",
|
|
59
|
+
"span_source": "c:\\Users\\BHLP0106\\Downloads\\test_teams_ai_bot\\teams-ai-basic-bot\\.venv\\Lib\\site-packages\\teams\\ai\\clients\\llm_client.py:217",
|
|
60
|
+
"workflow.name": "teams-ai-bot",
|
|
61
|
+
"span.type": "inference.framework",
|
|
62
|
+
"entity.1.type": "inference.azure_openai",
|
|
63
|
+
"entity.1.provider_name": "okahu-openai-dev.openai.azure.com",
|
|
64
|
+
"entity.1.inference_endpoint": "https://okahu-openai-dev.openai.azure.com/openai/deployments/gpt-4o-mini/",
|
|
65
|
+
"entity.2.name": "gpt-4o-mini",
|
|
66
|
+
"entity.2.type": "model.llm.gpt-4o-mini",
|
|
67
|
+
"scope.teams.channel.channel_id": "msteams",
|
|
68
|
+
"scope.msteams.activity.type": "message",
|
|
69
|
+
"scope.msteams.conversation.id": "personal-chat-id",
|
|
70
|
+
"scope.msteams.conversation.type": "personal",
|
|
71
|
+
"scope.msteams.conversation.name": "",
|
|
72
|
+
"scope.msteams.user.from_property.id": "user-id-0",
|
|
73
|
+
"scope.msteams.user.from_property.name": "Alex Wilber",
|
|
74
|
+
"scope.msteams.user.from_property.role": "",
|
|
75
|
+
"scope.msteams.recipient.id": "00000000-0000-0000-0000-00000000000011",
|
|
76
|
+
"scope.msteams.channel_data.tenant.id": "00000000-0000-0000-0000-0000000000001",
|
|
77
|
+
"entity.count": 2
|
|
78
|
+
},
|
|
79
|
+
"events": [
|
|
80
|
+
{
|
|
81
|
+
"name": "metadata",
|
|
82
|
+
"timestamp": "2025-06-06T09:00:00.681277Z",
|
|
83
|
+
"attributes": {
|
|
84
|
+
"completion_tokens": 100,
|
|
85
|
+
"prompt_tokens": 67,
|
|
86
|
+
"total_tokens": 167
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "data.input",
|
|
91
|
+
"timestamp": "2025-06-06T09:00:00.682278Z",
|
|
92
|
+
"attributes": {
|
|
93
|
+
"input": [
|
|
94
|
+
"{'system': '# Profile\\n- Your name is Monocle Bot\\n- You are funny.\\n- You work for Okahu.ai and know everything about OpenTelemetry and Monocle Apptrace\\n- You are coffee chatbot for teamsAI.'}",
|
|
95
|
+
"{'user': \"What's the best way to use a French press?\"}"
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "data.output",
|
|
101
|
+
"timestamp": "2025-06-06T09:00:00.682278Z",
|
|
102
|
+
"attributes": {
|
|
103
|
+
"status": "success",
|
|
104
|
+
"status_code": "success",
|
|
105
|
+
"response": "Ah, the French press! The only thing more sophisticated than a monocle-wearing cat. Here\u2019s how to brew a cup of coffee that\u2019ll make you feel like you\u2019re sipping in a Parisian caf\u00e9:\n\n1. **Gather Your Gear**: You\u2019ll need coarsely ground coffee, hot water (just off the boil), a French press, and a timer. Optional: a beret for that extra flair.\n\n2. **Measure Your Coffee**: A good rule of thumb is"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"links": [],
|
|
110
|
+
"resource": {
|
|
111
|
+
"attributes": {
|
|
112
|
+
"service.name": "teams-ai-bot"
|
|
113
|
+
},
|
|
114
|
+
"schema_url": ""
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
,{
|
|
119
|
+
"name": "teams.ai.planners.action_planner.ActionPlanner",
|
|
120
|
+
"context": {
|
|
121
|
+
"trace_id": "0x46d6c29b989a9dde96401fc9903e13d1",
|
|
122
|
+
"span_id": "0x989ef3e7186f39cb",
|
|
123
|
+
"trace_state": "[]"
|
|
124
|
+
},
|
|
125
|
+
"kind": "SpanKind.INTERNAL",
|
|
126
|
+
"parent_id": "0xeacd6a39ec627910",
|
|
127
|
+
"start_time": "2025-06-06T08:59:50.773557Z",
|
|
128
|
+
"end_time": "2025-06-06T09:00:00.683278Z",
|
|
129
|
+
"status": {
|
|
130
|
+
"status_code": "OK"
|
|
131
|
+
},
|
|
132
|
+
"attributes": {
|
|
133
|
+
"monocle_apptrace.version": "0.4.0",
|
|
134
|
+
"monocle_apptrace.language": "python",
|
|
135
|
+
"span_source": "c:\\Users\\BHLP0106\\Downloads\\test_teams_ai_bot\\teams-ai-basic-bot\\.venv\\Lib\\site-packages\\monocle_apptrace\\instrumentation\\common\\wrapper.py:232",
|
|
136
|
+
"workflow.name": "teams-ai-bot",
|
|
137
|
+
"span.type": "generic",
|
|
138
|
+
"entity.1.type": "teams.planner",
|
|
139
|
+
"entity.1.planner_type": "ActionPlanner",
|
|
140
|
+
"entity.2.model": "OpenAIModel",
|
|
141
|
+
"entity.2.tokenizer": "GPTTokenizer",
|
|
142
|
+
"scope.teams.channel.channel_id": "msteams",
|
|
143
|
+
"scope.msteams.activity.type": "message",
|
|
144
|
+
"scope.msteams.conversation.id": "personal-chat-id",
|
|
145
|
+
"scope.msteams.conversation.type": "personal",
|
|
146
|
+
"scope.msteams.conversation.name": "",
|
|
147
|
+
"scope.msteams.user.from_property.id": "user-id-0",
|
|
148
|
+
"scope.msteams.user.from_property.name": "Alex Wilber",
|
|
149
|
+
"scope.msteams.user.from_property.role": "",
|
|
150
|
+
"scope.msteams.recipient.id": "00000000-0000-0000-0000-00000000000011",
|
|
151
|
+
"scope.msteams.channel_data.tenant.id": "00000000-0000-0000-0000-0000000000001",
|
|
152
|
+
"entity.count": 2
|
|
153
|
+
},
|
|
154
|
+
"events": [
|
|
155
|
+
{
|
|
156
|
+
"name": "data.input",
|
|
157
|
+
"timestamp": "2025-06-06T09:00:00.683278Z",
|
|
158
|
+
"attributes": {
|
|
159
|
+
"prompt_template_name": "chat",
|
|
160
|
+
"prompt_template": "# Profile\n- Your name is Monocle Bot\n- You are funny.\n- You work for Okahu.ai and know everything about OpenTelemetry and Monocle Apptrace\n- You are coffee chatbot for teamsAI.",
|
|
161
|
+
"prompt_template_description": "Chat with Teams AI Bot",
|
|
162
|
+
"prompt_template_type": "completion",
|
|
163
|
+
"validator": "DefaultAugmentation",
|
|
164
|
+
"memory_type": "TurnState"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "data.output",
|
|
169
|
+
"timestamp": "2025-06-06T09:00:00.683278Z",
|
|
170
|
+
"attributes": {
|
|
171
|
+
"response": "Ah, the French press! The only thing more sophisticated than a monocle-wearing cat. Here\u2019s how to brew a cup of coffee that\u2019ll make you feel like you\u2019re sipping in a Parisian caf\u00e9:\n\n1. **Gather Your Gear**: You\u2019ll need coarsely ground coffee, hot water (just off the boil), a French press, and a timer. Optional: a beret for that extra flair.\n\n2. **Measure Your Coffee**: A good rule of thumb is"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "metadata",
|
|
176
|
+
"timestamp": "2025-06-06T09:00:00.683278Z",
|
|
177
|
+
"attributes": {
|
|
178
|
+
"feedback_enabled": true
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"links": [],
|
|
183
|
+
"resource": {
|
|
184
|
+
"attributes": {
|
|
185
|
+
"service.name": "teams-ai-bot"
|
|
186
|
+
},
|
|
187
|
+
"schema_url": ""
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
,{
|
|
191
|
+
"name": "workflow",
|
|
192
|
+
"context": {
|
|
193
|
+
"trace_id": "0x46d6c29b989a9dde96401fc9903e13d1",
|
|
194
|
+
"span_id": "0x06de92f0cf062643",
|
|
195
|
+
"trace_state": "[]"
|
|
196
|
+
},
|
|
197
|
+
"kind": "SpanKind.INTERNAL",
|
|
198
|
+
"parent_id": null,
|
|
199
|
+
"start_time": "2025-06-06T08:59:50.745950Z",
|
|
200
|
+
"end_time": "2025-06-06T09:00:00.725839Z",
|
|
201
|
+
"status": {
|
|
202
|
+
"status_code": "OK"
|
|
203
|
+
},
|
|
204
|
+
"attributes": {
|
|
205
|
+
"monocle_apptrace.version": "0.4.0",
|
|
206
|
+
"monocle_apptrace.language": "python",
|
|
207
|
+
"span_source": "c:\\Users\\BHLP0106\\Downloads\\test_teams_ai_bot\\teams-ai-basic-bot\\.venv\\Lib\\site-packages\\aiohttp\\web_protocol.py:462",
|
|
208
|
+
"span.type": "workflow",
|
|
209
|
+
"entity.1.name": "teams-ai-bot",
|
|
210
|
+
"entity.1.type": "workflow.generic",
|
|
211
|
+
"entity.2.type": "app_hosting.generic",
|
|
212
|
+
"entity.2.name": "generic"
|
|
213
|
+
},
|
|
214
|
+
"events": [],
|
|
215
|
+
"links": [],
|
|
216
|
+
"resource": {
|
|
217
|
+
"attributes": {
|
|
218
|
+
"service.name": "teams-ai-bot"
|
|
219
|
+
},
|
|
220
|
+
"schema_url": ""
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
],
|
|
225
|
+
[{
|
|
226
|
+
"name": "openai.resources.chat.completions.completions.AsyncCompletions",
|
|
227
|
+
"context": {
|
|
228
|
+
"trace_id": "0xc5b6ce45b20ed5b625efc3cc4e9e3f17",
|
|
229
|
+
"span_id": "0x735aeae2607fcdcd",
|
|
230
|
+
"trace_state": "[]"
|
|
231
|
+
},
|
|
232
|
+
"kind": "SpanKind.INTERNAL",
|
|
233
|
+
"parent_id": "0xfb96481aa42ec529",
|
|
234
|
+
"start_time": "2025-06-06T09:01:07.200007Z",
|
|
235
|
+
"end_time": "2025-06-06T09:01:20.298355Z",
|
|
236
|
+
"status": {
|
|
237
|
+
"status_code": "OK"
|
|
238
|
+
},
|
|
239
|
+
"attributes": {
|
|
240
|
+
"monocle_apptrace.version": "0.4.0",
|
|
241
|
+
"monocle_apptrace.language": "python",
|
|
242
|
+
"span_source": "c:\\Users\\BHLP0106\\Downloads\\test_teams_ai_bot\\teams-ai-basic-bot\\.venv\\Lib\\site-packages\\teams\\ai\\models\\openai_model.py:237",
|
|
243
|
+
"workflow.name": "teams-ai-bot",
|
|
244
|
+
"span.type": "inference.modelapi",
|
|
245
|
+
"scope.teams.channel.channel_id": "msteams",
|
|
246
|
+
"scope.msteams.activity.type": "message",
|
|
247
|
+
"scope.msteams.conversation.id": "personal-chat-id",
|
|
248
|
+
"scope.msteams.conversation.type": "personal",
|
|
249
|
+
"scope.msteams.conversation.name": "",
|
|
250
|
+
"scope.msteams.user.from_property.id": "user-id-0",
|
|
251
|
+
"scope.msteams.user.from_property.name": "Alex Wilber",
|
|
252
|
+
"scope.msteams.user.from_property.role": "",
|
|
253
|
+
"scope.msteams.recipient.id": "00000000-0000-0000-0000-00000000000011",
|
|
254
|
+
"scope.msteams.channel_data.tenant.id": "00000000-0000-0000-0000-0000000000001"
|
|
255
|
+
},
|
|
256
|
+
"events": [],
|
|
257
|
+
"links": [],
|
|
258
|
+
"resource": {
|
|
259
|
+
"attributes": {
|
|
260
|
+
"service.name": "teams-ai-bot"
|
|
261
|
+
},
|
|
262
|
+
"schema_url": ""
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
,{
|
|
267
|
+
"name": "teams.ai.models.openai_model.OpenAIModel",
|
|
268
|
+
"context": {
|
|
269
|
+
"trace_id": "0xc5b6ce45b20ed5b625efc3cc4e9e3f17",
|
|
270
|
+
"span_id": "0xfb96481aa42ec529",
|
|
271
|
+
"trace_state": "[]"
|
|
272
|
+
},
|
|
273
|
+
"kind": "SpanKind.INTERNAL",
|
|
274
|
+
"parent_id": "0x5691eaf4f6ee0b0b",
|
|
275
|
+
"start_time": "2025-06-06T09:01:07.195007Z",
|
|
276
|
+
"end_time": "2025-06-06T09:01:20.299355Z",
|
|
277
|
+
"status": {
|
|
278
|
+
"status_code": "OK"
|
|
279
|
+
},
|
|
280
|
+
"attributes": {
|
|
281
|
+
"monocle_apptrace.version": "0.4.0",
|
|
282
|
+
"monocle_apptrace.language": "python",
|
|
283
|
+
"span_source": "c:\\Users\\BHLP0106\\Downloads\\test_teams_ai_bot\\teams-ai-basic-bot\\.venv\\Lib\\site-packages\\teams\\ai\\clients\\llm_client.py:217",
|
|
284
|
+
"workflow.name": "teams-ai-bot",
|
|
285
|
+
"span.type": "inference.framework",
|
|
286
|
+
"entity.1.type": "inference.azure_openai",
|
|
287
|
+
"entity.1.provider_name": "okahu-openai-dev.openai.azure.com",
|
|
288
|
+
"entity.1.inference_endpoint": "https://okahu-openai-dev.openai.azure.com/openai/deployments/gpt-4o-mini/",
|
|
289
|
+
"entity.2.name": "gpt-4o-mini",
|
|
290
|
+
"entity.2.type": "model.llm.gpt-4o-mini",
|
|
291
|
+
"scope.teams.channel.channel_id": "msteams",
|
|
292
|
+
"scope.msteams.activity.type": "message",
|
|
293
|
+
"scope.msteams.conversation.id": "personal-chat-id",
|
|
294
|
+
"scope.msteams.conversation.type": "personal",
|
|
295
|
+
"scope.msteams.conversation.name": "",
|
|
296
|
+
"scope.msteams.user.from_property.id": "user-id-0",
|
|
297
|
+
"scope.msteams.user.from_property.name": "Alex Wilber",
|
|
298
|
+
"scope.msteams.user.from_property.role": "",
|
|
299
|
+
"scope.msteams.recipient.id": "00000000-0000-0000-0000-00000000000011",
|
|
300
|
+
"scope.msteams.channel_data.tenant.id": "00000000-0000-0000-0000-0000000000001",
|
|
301
|
+
"entity.count": 2
|
|
302
|
+
},
|
|
303
|
+
"events": [
|
|
304
|
+
{
|
|
305
|
+
"name": "metadata",
|
|
306
|
+
"timestamp": "2025-06-06T09:01:20.298355Z",
|
|
307
|
+
"attributes": {
|
|
308
|
+
"completion_tokens": 952,
|
|
309
|
+
"prompt_tokens": 116,
|
|
310
|
+
"total_tokens": 1068
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "data.input",
|
|
315
|
+
"timestamp": "2025-06-06T09:01:20.299355Z",
|
|
316
|
+
"attributes": {
|
|
317
|
+
"input": [
|
|
318
|
+
"{'system': '# Profile\\n- You are a coffee brewing expert specializing in home brewing methods\\n- You provide detailed, step-by-step brewing guides for different methods (pour-over, French press, espresso, etc.)\\n- You offer specific measurements, temperatures, and timing for optimal brewing\\n- You help troubleshoot common brewing problems\\n- You explain how different brewing variables affect the final cup\\n- You maintain a clear, methodical teaching style\\n- You focus on helping users achieve consistent, high-quality results at home\\n'}",
|
|
319
|
+
"{'user': 'how to brew coffee?'}"
|
|
320
|
+
]
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"name": "data.output",
|
|
325
|
+
"timestamp": "2025-06-06T09:01:20.299355Z",
|
|
326
|
+
"attributes": {
|
|
327
|
+
"status": "success",
|
|
328
|
+
"status_code": "success",
|
|
329
|
+
"response": "Brewing coffee can be a delightful experience, and there are several methods to choose from. Below, I\u2019ll provide a detailed guide for three popular brewing methods: Pour-Over, French Press, and Espresso. Each method has its unique characteristics, so you can choose one based on your preference.\n\n### 1. Pour-Over Coffee\n\n**Equipment Needed:**\n- Pour-over dripper (e.g., Hario V60, Chemex)\n- Coffee filter\n- Kettle (preferably a gooseneck kettle for control)\n- Scale\n- Coffee grinder\n- Mug or carafe\n\n**Ingredients:**\n- Fresh coffee beans (medium roast recommended)\n- Filtered water\n\n**Steps:**\n1. **Measure Coffee:** Use a coffee-to-water ratio of 1:15. For example, for 300g of water, use 20g of coffee.\n2. **Grind Coffee:** Grind the coffee to a medium-coarse consistency, similar to sea salt.\n3. **Boil Water:** Heat water to about 200\u00b0F (93\u00b0C). If you don\u2019t have a thermometer, bring water to a boil and let it sit for 30 seconds.\n4. **Prepare Filter:** Place the coffee filter in the dripper and rinse it with hot water to eliminate paper taste and preheat the dripper.\n5. **Add Coffee:** Place the ground coffee in the filter and create a small well in the center.\n6. **Bloom:** Pour just enough hot water (about 40g) to saturate the grounds. Let it bloom for 30-45 seconds.\n7. **Brew:** Slowly pour the remaining water in a circular motion, avoiding the edges. Aim to finish pouring in about 2-3 minutes.\n8. **Serve:** Once the water has fully drained, remove the dripper, and enjoy your coffee!\n\n### 2. French Press Coffee\n\n**Equipment Needed:**\n- French press\n- Kettle\n- Scale\n- Coffee grinder\n- Stirring spoon\n- Timer\n\n**Ingredients:**\n- Fresh coffee beans (coarse grind recommended)\n- Filtered water\n\n**Steps:**\n1. **Measure Coffee:** Use a coffee-to-water ratio of 1:15. For example, for 350g of water, use 23g of coffee.\n2. **Grind Coffee:** Grind the coffee to a coarse consistency, similar to breadcrumbs.\n3. **Boil Water:** Heat water to about 200\u00b0F (93\u00b0C).\n4. **Add Coffee:** Place the ground coffee in the French press.\n5. **Add Water:** Pour hot water over the coffee grounds, ensuring all grounds are saturated. Stir gently to mix.\n6. **Steep:** Place the lid on the French press and let it steep for 4 minutes.\n7. **Press:** Slowly press the plunger down to separate the grounds from the coffee.\n8. **Serve:** Pour the coffee into your mug and enjoy!\n\n### 3. Espresso\n\n**Equipment Needed:**\n- Espresso machine\n- Coffee grinder\n- Tamper\n- Scale\n- Shot glass or demitasse\n\n**Ingredients:**\n- Fresh coffee beans (dark roast recommended)\n- Filtered water\n\n**Steps:**\n1. **Measure Coffee:** Use about 18-20g of coffee for a double shot (about 60ml).\n2. **Grind Coffee:** Grind the coffee to a fine consistency, similar to table salt.\n3. **Preheat Machine:** Turn on your espresso machine and allow it to heat up.\n4. **Add Coffee:** Place the ground coffee in the portafilter and distribute evenly.\n5. **Tamp:** Use a tamper to press the coffee evenly and firmly.\n6. **Brew:** Lock the portafilter into the machine and start the extraction. Aim for a brew time of 25-30 seconds.\n7. **Serve:** Once the espresso is brewed, pour it into a shot glass or demitasse and enjoy!\n\n### Troubleshooting Common Problems\n\n- **Bitter Coffee:** This can be due to over-extraction. Try a coarser grind or reduce the brew time.\n- **Weak Coffee:** This may be due to under-extraction. Use a finer grind or increase the brew time.\n- **Sour Coffee:** This can happen if the coffee is under-extracted or brewed with water that is too cool. Ensure your water is at the right temperature.\n\n### Conclusion\n\nEach brewing method has its nuances, and experimenting with different variables (grind size, water temperature, brew time) can help you find your perfect cup. Enjoy the process, and happy brewing!"
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
"links": [],
|
|
334
|
+
"resource": {
|
|
335
|
+
"attributes": {
|
|
336
|
+
"service.name": "teams-ai-bot"
|
|
337
|
+
},
|
|
338
|
+
"schema_url": ""
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
,{
|
|
343
|
+
"name": "teams.ai.planners.action_planner.ActionPlanner",
|
|
344
|
+
"context": {
|
|
345
|
+
"trace_id": "0xc5b6ce45b20ed5b625efc3cc4e9e3f17",
|
|
346
|
+
"span_id": "0x5691eaf4f6ee0b0b",
|
|
347
|
+
"trace_state": "[]"
|
|
348
|
+
},
|
|
349
|
+
"kind": "SpanKind.INTERNAL",
|
|
350
|
+
"parent_id": "0xb7389454919fbe5a",
|
|
351
|
+
"start_time": "2025-06-06T09:01:07.191010Z",
|
|
352
|
+
"end_time": "2025-06-06T09:01:20.300355Z",
|
|
353
|
+
"status": {
|
|
354
|
+
"status_code": "OK"
|
|
355
|
+
},
|
|
356
|
+
"attributes": {
|
|
357
|
+
"monocle_apptrace.version": "0.4.0",
|
|
358
|
+
"monocle_apptrace.language": "python",
|
|
359
|
+
"span_source": "c:\\Users\\BHLP0106\\Downloads\\test_teams_ai_bot\\teams-ai-basic-bot\\.venv\\Lib\\site-packages\\monocle_apptrace\\instrumentation\\common\\wrapper.py:232",
|
|
360
|
+
"workflow.name": "teams-ai-bot",
|
|
361
|
+
"span.type": "generic",
|
|
362
|
+
"entity.1.type": "teams.planner",
|
|
363
|
+
"entity.1.planner_type": "ActionPlanner",
|
|
364
|
+
"entity.2.model": "OpenAIModel",
|
|
365
|
+
"entity.2.tokenizer": "GPTTokenizer",
|
|
366
|
+
"scope.teams.channel.channel_id": "msteams",
|
|
367
|
+
"scope.msteams.activity.type": "message",
|
|
368
|
+
"scope.msteams.conversation.id": "personal-chat-id",
|
|
369
|
+
"scope.msteams.conversation.type": "personal",
|
|
370
|
+
"scope.msteams.conversation.name": "",
|
|
371
|
+
"scope.msteams.user.from_property.id": "user-id-0",
|
|
372
|
+
"scope.msteams.user.from_property.name": "Alex Wilber",
|
|
373
|
+
"scope.msteams.user.from_property.role": "",
|
|
374
|
+
"scope.msteams.recipient.id": "00000000-0000-0000-0000-00000000000011",
|
|
375
|
+
"scope.msteams.channel_data.tenant.id": "00000000-0000-0000-0000-0000000000001",
|
|
376
|
+
"entity.count": 2
|
|
377
|
+
},
|
|
378
|
+
"events": [
|
|
379
|
+
{
|
|
380
|
+
"name": "data.input",
|
|
381
|
+
"timestamp": "2025-06-06T09:01:20.299355Z",
|
|
382
|
+
"attributes": {
|
|
383
|
+
"prompt_template_name": "brewing_guide",
|
|
384
|
+
"prompt_template": "# Profile\n- You are a coffee brewing expert specializing in home brewing methods\n- You provide detailed, step-by-step brewing guides for different methods (pour-over, French press, espresso, etc.)\n- You offer specific measurements, temperatures, and timing for optimal brewing\n- You help troubleshoot common brewing problems\n- You explain how different brewing variables affect the final cup\n- You maintain a clear, methodical teaching style\n- You focus on helping users achieve consistent, high-quality results at home\n",
|
|
385
|
+
"prompt_template_description": "A brewing guide prompt for detailed coffee brewing instructions",
|
|
386
|
+
"prompt_template_type": "completion",
|
|
387
|
+
"validator": "DefaultAugmentation",
|
|
388
|
+
"memory_type": "TurnState"
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"name": "data.output",
|
|
393
|
+
"timestamp": "2025-06-06T09:01:20.299355Z",
|
|
394
|
+
"attributes": {
|
|
395
|
+
"response": "Brewing coffee can be a delightful experience, and there are several methods to choose from. Below, I\u2019ll provide a detailed guide for three popular brewing methods: Pour-Over, French Press, and Espresso. Each method has its unique characteristics, so you can choose one based on your preference.\n\n### 1. Pour-Over Coffee\n\n**Equipment Needed:**\n- Pour-over dripper (e.g., Hario V60, Chemex)\n- Coffee filter\n- Kettle (preferably a gooseneck kettle for control)\n- Scale\n- Coffee grinder\n- Mug or carafe\n\n**Ingredients:**\n- Fresh coffee beans (medium roast recommended)\n- Filtered water\n\n**Steps:**\n1. **Measure Coffee:** Use a coffee-to-water ratio of 1:15. For example, for 300g of water, use 20g of coffee.\n2. **Grind Coffee:** Grind the coffee to a medium-coarse consistency, similar to sea salt.\n3. **Boil Water:** Heat water to about 200\u00b0F (93\u00b0C). If you don\u2019t have a thermometer, bring water to a boil and let it sit for 30 seconds.\n4. **Prepare Filter:** Place the coffee filter in the dripper and rinse it with hot water to eliminate paper taste and preheat the dripper.\n5. **Add Coffee:** Place the ground coffee in the filter and create a small well in the center.\n6. **Bloom:** Pour just enough hot water (about 40g) to saturate the grounds. Let it bloom for 30-45 seconds.\n7. **Brew:** Slowly pour the remaining water in a circular motion, avoiding the edges. Aim to finish pouring in about 2-3 minutes.\n8. **Serve:** Once the water has fully drained, remove the dripper, and enjoy your coffee!\n\n### 2. French Press Coffee\n\n**Equipment Needed:**\n- French press\n- Kettle\n- Scale\n- Coffee grinder\n- Stirring spoon\n- Timer\n\n**Ingredients:**\n- Fresh coffee beans (coarse grind recommended)\n- Filtered water\n\n**Steps:**\n1. **Measure Coffee:** Use a coffee-to-water ratio of 1:15. For example, for 350g of water, use 23g of coffee.\n2. **Grind Coffee:** Grind the coffee to a coarse consistency, similar to breadcrumbs.\n3. **Boil Water:** Heat water to about 200\u00b0F (93\u00b0C).\n4. **Add Coffee:** Place the ground coffee in the French press.\n5. **Add Water:** Pour hot water over the coffee grounds, ensuring all grounds are saturated. Stir gently to mix.\n6. **Steep:** Place the lid on the French press and let it steep for 4 minutes.\n7. **Press:** Slowly press the plunger down to separate the grounds from the coffee.\n8. **Serve:** Pour the coffee into your mug and enjoy!\n\n### 3. Espresso\n\n**Equipment Needed:**\n- Espresso machine\n- Coffee grinder\n- Tamper\n- Scale\n- Shot glass or demitasse\n\n**Ingredients:**\n- Fresh coffee beans (dark roast recommended)\n- Filtered water\n\n**Steps:**\n1. **Measure Coffee:** Use about 18-20g of coffee for a double shot (about 60ml).\n2. **Grind Coffee:** Grind the coffee to a fine consistency, similar to table salt.\n3. **Preheat Machine:** Turn on your espresso machine and allow it to heat up.\n4. **Add Coffee:** Place the ground coffee in the portafilter and distribute evenly.\n5. **Tamp:** Use a tamper to press the coffee evenly and firmly.\n6. **Brew:** Lock the portafilter into the machine and start the extraction. Aim for a brew time of 25-30 seconds.\n7. **Serve:** Once the espresso is brewed, pour it into a shot glass or demitasse and enjoy!\n\n### Troubleshooting Common Problems\n\n- **Bitter Coffee:** This can be due to over-extraction. Try a coarser grind or reduce the brew time.\n- **Weak Coffee:** This may be due to under-extraction. Use a finer grind or increase the brew time.\n- **Sour Coffee:** This can happen if the coffee is under-extracted or brewed with water that is too cool. Ensure your water is at the right temperature.\n\n### Conclusion\n\nEach brewing method has its nuances, and experimenting with different variables (grind size, water temperature, brew time) can help you find your perfect cup. Enjoy the process, and happy brewing!"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"name": "metadata",
|
|
400
|
+
"timestamp": "2025-06-06T09:01:20.300355Z",
|
|
401
|
+
"attributes": {
|
|
402
|
+
"feedback_enabled": true
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
"links": [],
|
|
407
|
+
"resource": {
|
|
408
|
+
"attributes": {
|
|
409
|
+
"service.name": "teams-ai-bot"
|
|
410
|
+
},
|
|
411
|
+
"schema_url": ""
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
,{
|
|
415
|
+
"name": "workflow",
|
|
416
|
+
"context": {
|
|
417
|
+
"trace_id": "0xc5b6ce45b20ed5b625efc3cc4e9e3f17",
|
|
418
|
+
"span_id": "0x2099739725e902bc",
|
|
419
|
+
"trace_state": "[]"
|
|
420
|
+
},
|
|
421
|
+
"kind": "SpanKind.INTERNAL",
|
|
422
|
+
"parent_id": null,
|
|
423
|
+
"start_time": "2025-06-06T09:01:07.129324Z",
|
|
424
|
+
"end_time": "2025-06-06T09:01:20.328841Z",
|
|
425
|
+
"status": {
|
|
426
|
+
"status_code": "OK"
|
|
427
|
+
},
|
|
428
|
+
"attributes": {
|
|
429
|
+
"monocle_apptrace.version": "0.4.0",
|
|
430
|
+
"monocle_apptrace.language": "python",
|
|
431
|
+
"span_source": "c:\\Users\\BHLP0106\\Downloads\\test_teams_ai_bot\\teams-ai-basic-bot\\.venv\\Lib\\site-packages\\aiohttp\\web_protocol.py:462",
|
|
432
|
+
"span.type": "workflow",
|
|
433
|
+
"entity.1.name": "teams-ai-bot",
|
|
434
|
+
"entity.1.type": "workflow.generic",
|
|
435
|
+
"entity.2.type": "app_hosting.generic",
|
|
436
|
+
"entity.2.name": "generic"
|
|
437
|
+
},
|
|
438
|
+
"events": [],
|
|
439
|
+
"links": [],
|
|
440
|
+
"resource": {
|
|
441
|
+
"attributes": {
|
|
442
|
+
"service.name": "teams-ai-bot"
|
|
443
|
+
},
|
|
444
|
+
"schema_url": ""
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: monocle_apptrace
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: package with monocle genAI tracing
|
|
5
5
|
Project-URL: Homepage, https://github.com/monocle2ai/monocle
|
|
6
6
|
Project-URL: Issues, https://github.com/monocle2ai/monocle/issues
|
|
@@ -16,41 +16,44 @@ Requires-Dist: opentelemetry-sdk>=1.21.0
|
|
|
16
16
|
Requires-Dist: requests
|
|
17
17
|
Requires-Dist: wrapt>=1.14.0
|
|
18
18
|
Provides-Extra: aws
|
|
19
|
-
Requires-Dist: boto3==1.
|
|
19
|
+
Requires-Dist: boto3==1.37.24; extra == 'aws'
|
|
20
20
|
Provides-Extra: azure
|
|
21
21
|
Requires-Dist: azure-storage-blob==12.22.0; extra == 'azure'
|
|
22
22
|
Provides-Extra: dev
|
|
23
23
|
Requires-Dist: anthropic-haystack; extra == 'dev'
|
|
24
|
-
Requires-Dist: anthropic==0.
|
|
24
|
+
Requires-Dist: anthropic==0.52.0; extra == 'dev'
|
|
25
25
|
Requires-Dist: azure-storage-blob==12.22.0; extra == 'dev'
|
|
26
|
-
Requires-Dist: boto3==1.
|
|
27
|
-
Requires-Dist: chromadb==0.
|
|
26
|
+
Requires-Dist: boto3==1.37.24; extra == 'dev'
|
|
27
|
+
Requires-Dist: chromadb==1.0.10; extra == 'dev'
|
|
28
28
|
Requires-Dist: datasets==2.20.0; extra == 'dev'
|
|
29
29
|
Requires-Dist: faiss-cpu==1.8.0; extra == 'dev'
|
|
30
30
|
Requires-Dist: flask; extra == 'dev'
|
|
31
31
|
Requires-Dist: haystack-ai==2.3.0; extra == 'dev'
|
|
32
32
|
Requires-Dist: instructorembedding==1.0.1; extra == 'dev'
|
|
33
|
-
Requires-Dist: langchain-
|
|
34
|
-
Requires-Dist: langchain-
|
|
35
|
-
Requires-Dist: langchain-
|
|
36
|
-
Requires-Dist: langchain-
|
|
37
|
-
Requires-Dist: langchain-
|
|
38
|
-
Requires-Dist: langchain==0.
|
|
33
|
+
Requires-Dist: langchain-anthropic==0.3.13; extra == 'dev'
|
|
34
|
+
Requires-Dist: langchain-aws==0.2.23; extra == 'dev'
|
|
35
|
+
Requires-Dist: langchain-chroma==0.2.4; extra == 'dev'
|
|
36
|
+
Requires-Dist: langchain-community==0.3.24; extra == 'dev'
|
|
37
|
+
Requires-Dist: langchain-mistralai==0.2.10; extra == 'dev'
|
|
38
|
+
Requires-Dist: langchain-openai==0.3.18; extra == 'dev'
|
|
39
|
+
Requires-Dist: langchain==0.3.25; extra == 'dev'
|
|
39
40
|
Requires-Dist: langchainhub==0.1.21; extra == 'dev'
|
|
40
41
|
Requires-Dist: langgraph==0.2.68; extra == 'dev'
|
|
41
|
-
Requires-Dist: llama-index-embeddings-huggingface==0.
|
|
42
|
-
Requires-Dist: llama-index-llms-
|
|
43
|
-
Requires-Dist: llama-index-llms-
|
|
44
|
-
Requires-Dist: llama-index-
|
|
45
|
-
Requires-Dist: llama-index-vector-stores-
|
|
46
|
-
Requires-Dist: llama-index==0.
|
|
42
|
+
Requires-Dist: llama-index-embeddings-huggingface==0.5.4; extra == 'dev'
|
|
43
|
+
Requires-Dist: llama-index-llms-anthropic==0.6.19; extra == 'dev'
|
|
44
|
+
Requires-Dist: llama-index-llms-azure-openai==0.3.2; extra == 'dev'
|
|
45
|
+
Requires-Dist: llama-index-llms-mistralai==0.4.0; extra == 'dev'
|
|
46
|
+
Requires-Dist: llama-index-vector-stores-chroma==0.4.1; extra == 'dev'
|
|
47
|
+
Requires-Dist: llama-index-vector-stores-opensearch==0.5.4; extra == 'dev'
|
|
48
|
+
Requires-Dist: llama-index==0.12.37; extra == 'dev'
|
|
47
49
|
Requires-Dist: mistral-haystack==0.0.2; extra == 'dev'
|
|
48
50
|
Requires-Dist: numpy==1.26.4; extra == 'dev'
|
|
49
51
|
Requires-Dist: opendal==0.45.14; extra == 'dev'
|
|
50
52
|
Requires-Dist: opensearch-haystack==1.2.0; extra == 'dev'
|
|
51
53
|
Requires-Dist: opentelemetry-instrumentation-flask; extra == 'dev'
|
|
52
54
|
Requires-Dist: parameterized==0.9.0; extra == 'dev'
|
|
53
|
-
Requires-Dist: pytest==
|
|
55
|
+
Requires-Dist: pytest-asyncio==0.26.0; extra == 'dev'
|
|
56
|
+
Requires-Dist: pytest==8.3.5; extra == 'dev'
|
|
54
57
|
Requires-Dist: requests-aws4auth==1.2.3; extra == 'dev'
|
|
55
58
|
Requires-Dist: sentence-transformers==2.6.1; extra == 'dev'
|
|
56
59
|
Requires-Dist: types-requests==2.31.0.20240106; extra == 'dev'
|