Skip to content

Commit 43d1245

Browse files
authored
feat: Bump support for mastra (#2747)
1 parent a6271d2 commit 43d1245

8 files changed

Lines changed: 951 additions & 77 deletions

File tree

‎.changeset/bump-mastra-support.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"braintrust": minor
3+
---
4+
5+
feat: Bump support for mastra

‎e2e/scenarios/mastra-instrumentation/__snapshots__/mastra-v1-latest.log-payloads.json‎

Lines changed: 170 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"metadata": {
1919
"entity_id": "weather-agent",
2020
"entity_name": "Weather Agent",
21-
"entity_type": "agent"
21+
"entity_type": "agent",
22+
"model": "mock-model-id",
23+
"provider": "mock-provider"
2224
},
2325
"name": "agent run: 'weather-agent'",
2426
"output": {
@@ -74,7 +76,16 @@
7476
"type": "llm"
7577
},
7678
{
77-
"input": {},
79+
"input": [
80+
{
81+
"content": "Answer weather questions with the provided mock forecast.",
82+
"role": "system"
83+
},
84+
{
85+
"content": "What is the weather in Paris?",
86+
"role": "user"
87+
}
88+
],
7889
"metadata": {
7990
"entity_id": "weather-agent",
8091
"entity_name": "Weather Agent",
@@ -92,6 +103,78 @@
92103
},
93104
"type": "llm"
94105
},
106+
{
107+
"input": {
108+
"prompt": [
109+
{
110+
"content": "Answer weather questions with the provided mock forecast.",
111+
"role": "system"
112+
},
113+
{
114+
"content": [
115+
{
116+
"providerOptions": {
117+
"mastra": {
118+
"createdAt": 0
119+
}
120+
},
121+
"text": "What is the weather in Paris?",
122+
"type": "text"
123+
}
124+
],
125+
"role": "user"
126+
}
127+
],
128+
"retryCount": 0,
129+
"stepNumber": 0
130+
},
131+
"metadata": {
132+
"entity_id": "provider-history-compat",
133+
"entity_name": "Provider History Compat",
134+
"entity_type": "input_processor"
135+
},
136+
"name": "llm request processor: provider-history-compat",
137+
"output": {
138+
"shortCircuited": false
139+
},
140+
"type": "function"
141+
},
142+
{
143+
"input": {
144+
"prompt": [
145+
{
146+
"content": "Answer weather questions with the provided mock forecast.",
147+
"role": "system"
148+
},
149+
{
150+
"content": [
151+
{
152+
"providerOptions": {
153+
"mastra": {
154+
"createdAt": 0
155+
}
156+
},
157+
"text": "What is the weather in Paris?",
158+
"type": "text"
159+
}
160+
],
161+
"role": "user"
162+
}
163+
],
164+
"retryCount": 0,
165+
"stepNumber": 0
166+
},
167+
"metadata": {
168+
"entity_id": "unsupported-file-handler",
169+
"entity_name": "Unsupported File Handler",
170+
"entity_type": "input_processor"
171+
},
172+
"name": "llm request processor: unsupported-file-handler",
173+
"output": {
174+
"shortCircuited": false
175+
},
176+
"type": "function"
177+
},
95178
{
96179
"metadata": {
97180
"entity_id": "weather-agent",
@@ -116,7 +199,9 @@
116199
"metadata": {
117200
"entity_id": "weather-agent",
118201
"entity_name": "Weather Agent",
119-
"entity_type": "agent"
202+
"entity_type": "agent",
203+
"model": "mock-model-id",
204+
"provider": "mock-provider"
120205
},
121206
"name": "agent run: 'weather-agent'",
122207
"output": {
@@ -172,7 +257,16 @@
172257
"type": "llm"
173258
},
174259
{
175-
"input": {},
260+
"input": [
261+
{
262+
"content": "Answer weather questions with the provided mock forecast.",
263+
"role": "system"
264+
},
265+
{
266+
"content": "Stream the Paris forecast.",
267+
"role": "user"
268+
}
269+
],
176270
"metadata": {
177271
"entity_id": "weather-agent",
178272
"entity_name": "Weather Agent",
@@ -190,6 +284,78 @@
190284
},
191285
"type": "llm"
192286
},
287+
{
288+
"input": {
289+
"prompt": [
290+
{
291+
"content": "Answer weather questions with the provided mock forecast.",
292+
"role": "system"
293+
},
294+
{
295+
"content": [
296+
{
297+
"providerOptions": {
298+
"mastra": {
299+
"createdAt": 0
300+
}
301+
},
302+
"text": "Stream the Paris forecast.",
303+
"type": "text"
304+
}
305+
],
306+
"role": "user"
307+
}
308+
],
309+
"retryCount": 0,
310+
"stepNumber": 0
311+
},
312+
"metadata": {
313+
"entity_id": "provider-history-compat",
314+
"entity_name": "Provider History Compat",
315+
"entity_type": "input_processor"
316+
},
317+
"name": "llm request processor: provider-history-compat",
318+
"output": {
319+
"shortCircuited": false
320+
},
321+
"type": "function"
322+
},
323+
{
324+
"input": {
325+
"prompt": [
326+
{
327+
"content": "Answer weather questions with the provided mock forecast.",
328+
"role": "system"
329+
},
330+
{
331+
"content": [
332+
{
333+
"providerOptions": {
334+
"mastra": {
335+
"createdAt": 0
336+
}
337+
},
338+
"text": "Stream the Paris forecast.",
339+
"type": "text"
340+
}
341+
],
342+
"role": "user"
343+
}
344+
],
345+
"retryCount": 0,
346+
"stepNumber": 0
347+
},
348+
"metadata": {
349+
"entity_id": "unsupported-file-handler",
350+
"entity_name": "Unsupported File Handler",
351+
"entity_type": "input_processor"
352+
},
353+
"name": "llm request processor: unsupported-file-handler",
354+
"output": {
355+
"shortCircuited": false
356+
},
357+
"type": "function"
358+
},
193359
{
194360
"metadata": {
195361
"entity_id": "weather-agent",

0 commit comments

Comments
 (0)