handoffmap 0.2.0__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.
@@ -0,0 +1,1032 @@
1
+ {
2
+ "resourceSpans": [
3
+ {
4
+ "resource": {
5
+ "attributes": [
6
+ {
7
+ "key": "telemetry.sdk.language",
8
+ "value": {
9
+ "stringValue": "python"
10
+ }
11
+ },
12
+ {
13
+ "key": "telemetry.sdk.name",
14
+ "value": {
15
+ "stringValue": "opentelemetry"
16
+ }
17
+ },
18
+ {
19
+ "key": "telemetry.sdk.version",
20
+ "value": {
21
+ "stringValue": "1.45.2"
22
+ }
23
+ },
24
+ {
25
+ "key": "service.instance.id",
26
+ "value": {
27
+ "stringValue": "bd192d77-e350-4230-9ea9-66e0a3bb663e"
28
+ }
29
+ },
30
+ {
31
+ "key": "service.name",
32
+ "value": {
33
+ "stringValue": "probe-pydantic-ai"
34
+ }
35
+ }
36
+ ]
37
+ },
38
+ "scopeSpans": [
39
+ {
40
+ "scope": {
41
+ "name": "pydantic-ai",
42
+ "version": "2.67.0"
43
+ },
44
+ "spans": [
45
+ {
46
+ "traceId": "bW4ivYEzHZ/XW+EkFVGwMg==",
47
+ "spanId": "zNrGq7DU6XM=",
48
+ "parentSpanId": "U6acGw61EmE=",
49
+ "name": "chat mock-large",
50
+ "kind": "SPAN_KIND_CLIENT",
51
+ "startTimeUnixNano": "1794366329012974000",
52
+ "endTimeUnixNano": "1794366329021730000",
53
+ "attributes": [
54
+ {
55
+ "key": "gen_ai.operation.name",
56
+ "value": {
57
+ "stringValue": "chat"
58
+ }
59
+ },
60
+ {
61
+ "key": "gen_ai.agent.name",
62
+ "value": {
63
+ "stringValue": "orchestrator"
64
+ }
65
+ },
66
+ {
67
+ "key": "gen_ai.agent.call.id",
68
+ "value": {
69
+ "stringValue": "01a1c891-50ae-701e-99fa-09b92ae89f1e"
70
+ }
71
+ },
72
+ {
73
+ "key": "gen_ai.conversation.id",
74
+ "value": {
75
+ "stringValue": "01a1c891-50ae-701e-99fa-09baf532480f"
76
+ }
77
+ },
78
+ {
79
+ "key": "gen_ai.provider.name",
80
+ "value": {
81
+ "stringValue": "function"
82
+ }
83
+ },
84
+ {
85
+ "key": "gen_ai.system",
86
+ "value": {
87
+ "stringValue": "function"
88
+ }
89
+ },
90
+ {
91
+ "key": "gen_ai.request.model",
92
+ "value": {
93
+ "stringValue": "mock-large"
94
+ }
95
+ },
96
+ {
97
+ "key": "model_request_parameters",
98
+ "value": {
99
+ "stringValue": "{\"function_tools\":[{\"name\":\"ask_researcher\",\"parameters_json_schema\":{\"additionalProperties\":false,\"properties\":{\"q\":{\"type\":\"string\"}},\"required\":[\"q\"],\"type\":\"object\"},\"description\":null,\"outer_typed_dict_key\":null,\"strict\":null,\"sequential\":false,\"kind\":\"function\",\"metadata\":null,\"timeout\":null,\"defer_loading\":false,\"unless_native\":null,\"with_native\":null,\"tool_kind\":null,\"unless_tool_kind\":null,\"return_schema\":null,\"include_return_schema\":null,\"toolset_id\":\"<agent>\",\"capability_id\":null},{\"name\":\"ask_writer\",\"parameters_json_schema\":{\"additionalProperties\":false,\"properties\":{\"q\":{\"type\":\"string\"}},\"required\":[\"q\"],\"type\":\"object\"},\"description\":null,\"outer_typed_dict_key\":null,\"strict\":null,\"sequential\":false,\"kind\":\"function\",\"metadata\":null,\"timeout\":null,\"defer_loading\":false,\"unless_native\":null,\"with_native\":null,\"tool_kind\":null,\"unless_tool_kind\":null,\"return_schema\":null,\"include_return_schema\":null,\"toolset_id\":\"<agent>\",\"capability_id\":null}],\"native_tools\":[],\"tool_visibility\":{\"ask_researcher\":\"visible\",\"ask_writer\":\"visible\"},\"revealed_tool_names\":[],\"introduced_tool_names\":[],\"deferred_capability_ids\":[],\"output_mode\":\"text\",\"output_object\":null,\"output_tools\":[],\"prompted_output_template\":null,\"allow_text_output\":true,\"allow_image_output\":false,\"instruction_parts\":null,\"instruction_visibility\":null,\"thinking\":null,\"cache\":null}"
100
+ }
101
+ },
102
+ {
103
+ "key": "gen_ai.tool.definitions",
104
+ "value": {
105
+ "stringValue": "[{\"type\":\"function\",\"name\":\"ask_researcher\",\"parameters\":{\"additionalProperties\":false,\"properties\":{\"q\":{\"type\":\"string\"}},\"required\":[\"q\"],\"type\":\"object\"}},{\"type\":\"function\",\"name\":\"ask_writer\",\"parameters\":{\"additionalProperties\":false,\"properties\":{\"q\":{\"type\":\"string\"}},\"required\":[\"q\"],\"type\":\"object\"}}]"
106
+ }
107
+ },
108
+ {
109
+ "key": "gen_ai.input.messages",
110
+ "value": {
111
+ "stringValue": "[{\"role\":\"user\",\"parts\":[{\"type\":\"text\",\"content\":\"plan it\"}]}]"
112
+ }
113
+ },
114
+ {
115
+ "key": "gen_ai.output.messages",
116
+ "value": {
117
+ "stringValue": "[{\"role\":\"assistant\",\"parts\":[{\"type\":\"tool_call\",\"id\":\"pyd_ai_552608d789994a288478a3ca64ea81a9\",\"name\":\"ask_researcher\",\"arguments\":{\"q\":\"otel\"}},{\"type\":\"tool_call\",\"id\":\"pyd_ai_f3e82b9923d2453096b620b55e9df6f8\",\"name\":\"ask_writer\",\"arguments\":{\"q\":\"draft\"}}]}]"
118
+ }
119
+ },
120
+ {
121
+ "key": "logfire.json_schema",
122
+ "value": {
123
+ "stringValue": "{\"type\":\"object\",\"properties\":{\"gen_ai.input.messages\":{\"type\":\"array\"},\"gen_ai.output.messages\":{\"type\":\"array\"},\"model_request_parameters\":{\"type\":\"object\"}}}"
124
+ }
125
+ },
126
+ {
127
+ "key": "gen_ai.usage.input_tokens",
128
+ "value": {
129
+ "intValue": "52"
130
+ }
131
+ },
132
+ {
133
+ "key": "gen_ai.usage.output_tokens",
134
+ "value": {
135
+ "intValue": "10"
136
+ }
137
+ },
138
+ {
139
+ "key": "gen_ai.response.model",
140
+ "value": {
141
+ "stringValue": "mock-large"
142
+ }
143
+ }
144
+ ],
145
+ "status": {},
146
+ "flags": 256
147
+ },
148
+ {
149
+ "traceId": "bW4ivYEzHZ/XW+EkFVGwMg==",
150
+ "spanId": "kQyw4bV8T2g=",
151
+ "parentSpanId": "6SCP6lFpy1w=",
152
+ "name": "chat mock-small",
153
+ "kind": "SPAN_KIND_CLIENT",
154
+ "startTimeUnixNano": "1794366329024635000",
155
+ "endTimeUnixNano": "1794366329025429000",
156
+ "attributes": [
157
+ {
158
+ "key": "gen_ai.operation.name",
159
+ "value": {
160
+ "stringValue": "chat"
161
+ }
162
+ },
163
+ {
164
+ "key": "gen_ai.agent.name",
165
+ "value": {
166
+ "stringValue": "researcher"
167
+ }
168
+ },
169
+ {
170
+ "key": "gen_ai.agent.call.id",
171
+ "value": {
172
+ "stringValue": "01a1c891-50be-75c8-bbcc-535af12995da"
173
+ }
174
+ },
175
+ {
176
+ "key": "gen_ai.conversation.id",
177
+ "value": {
178
+ "stringValue": "01a1c891-50be-75c8-bbcc-535b8c238b7b"
179
+ }
180
+ },
181
+ {
182
+ "key": "gen_ai.provider.name",
183
+ "value": {
184
+ "stringValue": "function"
185
+ }
186
+ },
187
+ {
188
+ "key": "gen_ai.system",
189
+ "value": {
190
+ "stringValue": "function"
191
+ }
192
+ },
193
+ {
194
+ "key": "gen_ai.request.model",
195
+ "value": {
196
+ "stringValue": "mock-small"
197
+ }
198
+ },
199
+ {
200
+ "key": "model_request_parameters",
201
+ "value": {
202
+ "stringValue": "{\"function_tools\":[{\"name\":\"search\",\"parameters_json_schema\":{\"additionalProperties\":false,\"properties\":{\"term\":{\"type\":\"string\"}},\"required\":[\"term\"],\"type\":\"object\"},\"description\":null,\"outer_typed_dict_key\":null,\"strict\":null,\"sequential\":false,\"kind\":\"function\",\"metadata\":null,\"timeout\":null,\"defer_loading\":false,\"unless_native\":null,\"with_native\":null,\"tool_kind\":null,\"unless_tool_kind\":null,\"return_schema\":null,\"include_return_schema\":null,\"toolset_id\":\"<agent>\",\"capability_id\":null}],\"native_tools\":[],\"tool_visibility\":{\"search\":\"visible\"},\"revealed_tool_names\":[],\"introduced_tool_names\":[],\"deferred_capability_ids\":[],\"output_mode\":\"text\",\"output_object\":null,\"output_tools\":[],\"prompted_output_template\":null,\"allow_text_output\":true,\"allow_image_output\":false,\"instruction_parts\":null,\"instruction_visibility\":null,\"thinking\":null,\"cache\":null}"
203
+ }
204
+ },
205
+ {
206
+ "key": "gen_ai.tool.definitions",
207
+ "value": {
208
+ "stringValue": "[{\"type\":\"function\",\"name\":\"search\",\"parameters\":{\"additionalProperties\":false,\"properties\":{\"term\":{\"type\":\"string\"}},\"required\":[\"term\"],\"type\":\"object\"}}]"
209
+ }
210
+ },
211
+ {
212
+ "key": "gen_ai.input.messages",
213
+ "value": {
214
+ "stringValue": "[{\"role\":\"user\",\"parts\":[{\"type\":\"text\",\"content\":\"otel\"}]}]"
215
+ }
216
+ },
217
+ {
218
+ "key": "gen_ai.output.messages",
219
+ "value": {
220
+ "stringValue": "[{\"role\":\"assistant\",\"parts\":[{\"type\":\"tool_call\",\"id\":\"pyd_ai_141bdafd8e874645b793c6b1195663cf\",\"name\":\"search\",\"arguments\":{\"term\":\"genai\"}}]}]"
221
+ }
222
+ },
223
+ {
224
+ "key": "logfire.json_schema",
225
+ "value": {
226
+ "stringValue": "{\"type\":\"object\",\"properties\":{\"gen_ai.input.messages\":{\"type\":\"array\"},\"gen_ai.output.messages\":{\"type\":\"array\"},\"model_request_parameters\":{\"type\":\"object\"}}}"
227
+ }
228
+ },
229
+ {
230
+ "key": "gen_ai.usage.input_tokens",
231
+ "value": {
232
+ "intValue": "51"
233
+ }
234
+ },
235
+ {
236
+ "key": "gen_ai.usage.output_tokens",
237
+ "value": {
238
+ "intValue": "5"
239
+ }
240
+ },
241
+ {
242
+ "key": "gen_ai.response.model",
243
+ "value": {
244
+ "stringValue": "mock-small"
245
+ }
246
+ }
247
+ ],
248
+ "status": {},
249
+ "flags": 256
250
+ },
251
+ {
252
+ "traceId": "bW4ivYEzHZ/XW+EkFVGwMg==",
253
+ "spanId": "Mig6giuo/hs=",
254
+ "parentSpanId": "o03TZMjQ1n4=",
255
+ "name": "chat mock-small",
256
+ "kind": "SPAN_KIND_CLIENT",
257
+ "startTimeUnixNano": "1794366329046356000",
258
+ "endTimeUnixNano": "1794366329046883000",
259
+ "attributes": [
260
+ {
261
+ "key": "gen_ai.operation.name",
262
+ "value": {
263
+ "stringValue": "chat"
264
+ }
265
+ },
266
+ {
267
+ "key": "gen_ai.agent.name",
268
+ "value": {
269
+ "stringValue": "writer"
270
+ }
271
+ },
272
+ {
273
+ "key": "gen_ai.agent.call.id",
274
+ "value": {
275
+ "stringValue": "01a1c891-50d4-702a-bbd0-babf693c323c"
276
+ }
277
+ },
278
+ {
279
+ "key": "gen_ai.conversation.id",
280
+ "value": {
281
+ "stringValue": "01a1c891-50d4-702a-bbd0-bac0861717e3"
282
+ }
283
+ },
284
+ {
285
+ "key": "gen_ai.provider.name",
286
+ "value": {
287
+ "stringValue": "function"
288
+ }
289
+ },
290
+ {
291
+ "key": "gen_ai.system",
292
+ "value": {
293
+ "stringValue": "function"
294
+ }
295
+ },
296
+ {
297
+ "key": "gen_ai.request.model",
298
+ "value": {
299
+ "stringValue": "mock-small"
300
+ }
301
+ },
302
+ {
303
+ "key": "model_request_parameters",
304
+ "value": {
305
+ "stringValue": "{\"function_tools\":[],\"native_tools\":[],\"tool_visibility\":{},\"revealed_tool_names\":[],\"introduced_tool_names\":[],\"deferred_capability_ids\":[],\"output_mode\":\"text\",\"output_object\":null,\"output_tools\":[],\"prompted_output_template\":null,\"allow_text_output\":true,\"allow_image_output\":false,\"instruction_parts\":null,\"instruction_visibility\":null,\"thinking\":null,\"cache\":null}"
306
+ }
307
+ },
308
+ {
309
+ "key": "gen_ai.input.messages",
310
+ "value": {
311
+ "stringValue": "[{\"role\":\"user\",\"parts\":[{\"type\":\"text\",\"content\":\"draft\"}]}]"
312
+ }
313
+ },
314
+ {
315
+ "key": "gen_ai.output.messages",
316
+ "value": {
317
+ "stringValue": "[{\"role\":\"assistant\",\"parts\":[{\"type\":\"text\",\"content\":\"written\"}]}]"
318
+ }
319
+ },
320
+ {
321
+ "key": "logfire.json_schema",
322
+ "value": {
323
+ "stringValue": "{\"type\":\"object\",\"properties\":{\"gen_ai.input.messages\":{\"type\":\"array\"},\"gen_ai.output.messages\":{\"type\":\"array\"},\"model_request_parameters\":{\"type\":\"object\"}}}"
324
+ }
325
+ },
326
+ {
327
+ "key": "gen_ai.usage.input_tokens",
328
+ "value": {
329
+ "intValue": "51"
330
+ }
331
+ },
332
+ {
333
+ "key": "gen_ai.usage.output_tokens",
334
+ "value": {
335
+ "intValue": "1"
336
+ }
337
+ },
338
+ {
339
+ "key": "gen_ai.response.model",
340
+ "value": {
341
+ "stringValue": "mock-small"
342
+ }
343
+ }
344
+ ],
345
+ "status": {},
346
+ "flags": 256
347
+ },
348
+ {
349
+ "traceId": "bW4ivYEzHZ/XW+EkFVGwMg==",
350
+ "spanId": "o03TZMjQ1n4=",
351
+ "parentSpanId": "uy+oip8LdYM=",
352
+ "name": "invoke_agent writer",
353
+ "kind": "SPAN_KIND_INTERNAL",
354
+ "startTimeUnixNano": "1794366329045625000",
355
+ "endTimeUnixNano": "1794366329047441000",
356
+ "attributes": [
357
+ {
358
+ "key": "model_name",
359
+ "value": {
360
+ "stringValue": "mock-small"
361
+ }
362
+ },
363
+ {
364
+ "key": "agent_name",
365
+ "value": {
366
+ "stringValue": "writer"
367
+ }
368
+ },
369
+ {
370
+ "key": "gen_ai.agent.name",
371
+ "value": {
372
+ "stringValue": "writer"
373
+ }
374
+ },
375
+ {
376
+ "key": "gen_ai.agent.call.id",
377
+ "value": {
378
+ "stringValue": "01a1c891-50d4-702a-bbd0-babf693c323c"
379
+ }
380
+ },
381
+ {
382
+ "key": "gen_ai.conversation.id",
383
+ "value": {
384
+ "stringValue": "01a1c891-50d4-702a-bbd0-bac0861717e3"
385
+ }
386
+ },
387
+ {
388
+ "key": "gen_ai.operation.name",
389
+ "value": {
390
+ "stringValue": "invoke_agent"
391
+ }
392
+ },
393
+ {
394
+ "key": "logfire.msg",
395
+ "value": {
396
+ "stringValue": "writer run"
397
+ }
398
+ },
399
+ {
400
+ "key": "final_result",
401
+ "value": {
402
+ "stringValue": "written"
403
+ }
404
+ },
405
+ {
406
+ "key": "gen_ai.aggregated_usage.input_tokens",
407
+ "value": {
408
+ "intValue": "51"
409
+ }
410
+ },
411
+ {
412
+ "key": "gen_ai.aggregated_usage.output_tokens",
413
+ "value": {
414
+ "intValue": "1"
415
+ }
416
+ },
417
+ {
418
+ "key": "pydantic_ai.all_messages",
419
+ "value": {
420
+ "stringValue": "[{\"role\":\"user\",\"parts\":[{\"type\":\"text\",\"content\":\"draft\"}]},{\"role\":\"assistant\",\"parts\":[{\"type\":\"text\",\"content\":\"written\"}]}]"
421
+ }
422
+ },
423
+ {
424
+ "key": "logfire.json_schema",
425
+ "value": {
426
+ "stringValue": "{\"type\":\"object\",\"properties\":{\"pydantic_ai.all_messages\":{\"type\":\"array\"},\"final_result\":{\"type\":\"object\"}}}"
427
+ }
428
+ }
429
+ ],
430
+ "status": {},
431
+ "flags": 256
432
+ },
433
+ {
434
+ "traceId": "bW4ivYEzHZ/XW+EkFVGwMg==",
435
+ "spanId": "uy+oip8LdYM=",
436
+ "parentSpanId": "U6acGw61EmE=",
437
+ "name": "execute_tool ask_writer",
438
+ "kind": "SPAN_KIND_INTERNAL",
439
+ "startTimeUnixNano": "1794366329023308000",
440
+ "endTimeUnixNano": "1794366329047617000",
441
+ "attributes": [
442
+ {
443
+ "key": "gen_ai.operation.name",
444
+ "value": {
445
+ "stringValue": "execute_tool"
446
+ }
447
+ },
448
+ {
449
+ "key": "gen_ai.tool.name",
450
+ "value": {
451
+ "stringValue": "ask_writer"
452
+ }
453
+ },
454
+ {
455
+ "key": "gen_ai.tool.call.id",
456
+ "value": {
457
+ "stringValue": "pyd_ai_f3e82b9923d2453096b620b55e9df6f8"
458
+ }
459
+ },
460
+ {
461
+ "key": "gen_ai.tool.call.arguments",
462
+ "value": {
463
+ "stringValue": "{\"q\":\"draft\"}"
464
+ }
465
+ },
466
+ {
467
+ "key": "gen_ai.agent.name",
468
+ "value": {
469
+ "stringValue": "orchestrator"
470
+ }
471
+ },
472
+ {
473
+ "key": "gen_ai.agent.call.id",
474
+ "value": {
475
+ "stringValue": "01a1c891-50ae-701e-99fa-09b92ae89f1e"
476
+ }
477
+ },
478
+ {
479
+ "key": "gen_ai.conversation.id",
480
+ "value": {
481
+ "stringValue": "01a1c891-50ae-701e-99fa-09baf532480f"
482
+ }
483
+ },
484
+ {
485
+ "key": "logfire.msg",
486
+ "value": {
487
+ "stringValue": "running tool: ask_writer"
488
+ }
489
+ },
490
+ {
491
+ "key": "logfire.json_schema",
492
+ "value": {
493
+ "stringValue": "{\"type\":\"object\",\"properties\":{\"gen_ai.tool.call.arguments\":{\"type\":\"object\"},\"gen_ai.tool.call.result\":{\"type\":\"object\"},\"gen_ai.tool.name\":{},\"gen_ai.tool.call.id\":{}}}"
494
+ }
495
+ },
496
+ {
497
+ "key": "gen_ai.tool.call.result",
498
+ "value": {
499
+ "stringValue": "written"
500
+ }
501
+ }
502
+ ],
503
+ "status": {},
504
+ "flags": 256
505
+ },
506
+ {
507
+ "traceId": "bW4ivYEzHZ/XW+EkFVGwMg==",
508
+ "spanId": "nvvJgsPb3a8=",
509
+ "parentSpanId": "6SCP6lFpy1w=",
510
+ "name": "execute_tool search",
511
+ "kind": "SPAN_KIND_INTERNAL",
512
+ "startTimeUnixNano": "1794366329025898000",
513
+ "endTimeUnixNano": "1794366329077010000",
514
+ "attributes": [
515
+ {
516
+ "key": "gen_ai.operation.name",
517
+ "value": {
518
+ "stringValue": "execute_tool"
519
+ }
520
+ },
521
+ {
522
+ "key": "gen_ai.tool.name",
523
+ "value": {
524
+ "stringValue": "search"
525
+ }
526
+ },
527
+ {
528
+ "key": "gen_ai.tool.call.id",
529
+ "value": {
530
+ "stringValue": "pyd_ai_141bdafd8e874645b793c6b1195663cf"
531
+ }
532
+ },
533
+ {
534
+ "key": "gen_ai.tool.call.arguments",
535
+ "value": {
536
+ "stringValue": "{\"term\":\"genai\"}"
537
+ }
538
+ },
539
+ {
540
+ "key": "gen_ai.agent.name",
541
+ "value": {
542
+ "stringValue": "researcher"
543
+ }
544
+ },
545
+ {
546
+ "key": "gen_ai.agent.call.id",
547
+ "value": {
548
+ "stringValue": "01a1c891-50be-75c8-bbcc-535af12995da"
549
+ }
550
+ },
551
+ {
552
+ "key": "gen_ai.conversation.id",
553
+ "value": {
554
+ "stringValue": "01a1c891-50be-75c8-bbcc-535b8c238b7b"
555
+ }
556
+ },
557
+ {
558
+ "key": "logfire.msg",
559
+ "value": {
560
+ "stringValue": "running tool: search"
561
+ }
562
+ },
563
+ {
564
+ "key": "logfire.json_schema",
565
+ "value": {
566
+ "stringValue": "{\"type\":\"object\",\"properties\":{\"gen_ai.tool.call.arguments\":{\"type\":\"object\"},\"gen_ai.tool.call.result\":{\"type\":\"object\"},\"gen_ai.tool.name\":{},\"gen_ai.tool.call.id\":{}}}"
567
+ }
568
+ },
569
+ {
570
+ "key": "gen_ai.tool.call.result",
571
+ "value": {
572
+ "stringValue": "result for genai"
573
+ }
574
+ }
575
+ ],
576
+ "status": {},
577
+ "flags": 256
578
+ },
579
+ {
580
+ "traceId": "bW4ivYEzHZ/XW+EkFVGwMg==",
581
+ "spanId": "IbTS80yls+Q=",
582
+ "parentSpanId": "6SCP6lFpy1w=",
583
+ "name": "chat mock-small",
584
+ "kind": "SPAN_KIND_CLIENT",
585
+ "startTimeUnixNano": "1794366329077561000",
586
+ "endTimeUnixNano": "1794366329078114000",
587
+ "attributes": [
588
+ {
589
+ "key": "gen_ai.operation.name",
590
+ "value": {
591
+ "stringValue": "chat"
592
+ }
593
+ },
594
+ {
595
+ "key": "gen_ai.agent.name",
596
+ "value": {
597
+ "stringValue": "researcher"
598
+ }
599
+ },
600
+ {
601
+ "key": "gen_ai.agent.call.id",
602
+ "value": {
603
+ "stringValue": "01a1c891-50be-75c8-bbcc-535af12995da"
604
+ }
605
+ },
606
+ {
607
+ "key": "gen_ai.conversation.id",
608
+ "value": {
609
+ "stringValue": "01a1c891-50be-75c8-bbcc-535b8c238b7b"
610
+ }
611
+ },
612
+ {
613
+ "key": "gen_ai.provider.name",
614
+ "value": {
615
+ "stringValue": "function"
616
+ }
617
+ },
618
+ {
619
+ "key": "gen_ai.system",
620
+ "value": {
621
+ "stringValue": "function"
622
+ }
623
+ },
624
+ {
625
+ "key": "gen_ai.request.model",
626
+ "value": {
627
+ "stringValue": "mock-small"
628
+ }
629
+ },
630
+ {
631
+ "key": "model_request_parameters",
632
+ "value": {
633
+ "stringValue": "{\"function_tools\":[{\"name\":\"search\",\"parameters_json_schema\":{\"additionalProperties\":false,\"properties\":{\"term\":{\"type\":\"string\"}},\"required\":[\"term\"],\"type\":\"object\"},\"description\":null,\"outer_typed_dict_key\":null,\"strict\":null,\"sequential\":false,\"kind\":\"function\",\"metadata\":null,\"timeout\":null,\"defer_loading\":false,\"unless_native\":null,\"with_native\":null,\"tool_kind\":null,\"unless_tool_kind\":null,\"return_schema\":null,\"include_return_schema\":null,\"toolset_id\":\"<agent>\",\"capability_id\":null}],\"native_tools\":[],\"tool_visibility\":{\"search\":\"visible\"},\"revealed_tool_names\":[],\"introduced_tool_names\":[],\"deferred_capability_ids\":[],\"output_mode\":\"text\",\"output_object\":null,\"output_tools\":[],\"prompted_output_template\":null,\"allow_text_output\":true,\"allow_image_output\":false,\"instruction_parts\":null,\"instruction_visibility\":null,\"thinking\":null,\"cache\":null}"
634
+ }
635
+ },
636
+ {
637
+ "key": "gen_ai.tool.definitions",
638
+ "value": {
639
+ "stringValue": "[{\"type\":\"function\",\"name\":\"search\",\"parameters\":{\"additionalProperties\":false,\"properties\":{\"term\":{\"type\":\"string\"}},\"required\":[\"term\"],\"type\":\"object\"}}]"
640
+ }
641
+ },
642
+ {
643
+ "key": "gen_ai.input.messages",
644
+ "value": {
645
+ "stringValue": "[{\"role\":\"user\",\"parts\":[{\"type\":\"text\",\"content\":\"otel\"}]},{\"role\":\"assistant\",\"parts\":[{\"type\":\"tool_call\",\"id\":\"pyd_ai_141bdafd8e874645b793c6b1195663cf\",\"name\":\"search\",\"arguments\":{\"term\":\"genai\"}}]},{\"role\":\"tool\",\"parts\":[{\"type\":\"tool_call_response\",\"id\":\"pyd_ai_141bdafd8e874645b793c6b1195663cf\",\"name\":\"search\",\"result\":\"result for genai\"}]}]"
646
+ }
647
+ },
648
+ {
649
+ "key": "gen_ai.output.messages",
650
+ "value": {
651
+ "stringValue": "[{\"role\":\"assistant\",\"parts\":[{\"type\":\"text\",\"content\":\"found\"}]}]"
652
+ }
653
+ },
654
+ {
655
+ "key": "logfire.json_schema",
656
+ "value": {
657
+ "stringValue": "{\"type\":\"object\",\"properties\":{\"gen_ai.input.messages\":{\"type\":\"array\"},\"gen_ai.output.messages\":{\"type\":\"array\"},\"model_request_parameters\":{\"type\":\"object\"}}}"
658
+ }
659
+ },
660
+ {
661
+ "key": "gen_ai.usage.input_tokens",
662
+ "value": {
663
+ "intValue": "54"
664
+ }
665
+ },
666
+ {
667
+ "key": "gen_ai.usage.output_tokens",
668
+ "value": {
669
+ "intValue": "6"
670
+ }
671
+ },
672
+ {
673
+ "key": "gen_ai.response.model",
674
+ "value": {
675
+ "stringValue": "mock-small"
676
+ }
677
+ }
678
+ ],
679
+ "status": {},
680
+ "flags": 256
681
+ },
682
+ {
683
+ "traceId": "bW4ivYEzHZ/XW+EkFVGwMg==",
684
+ "spanId": "6SCP6lFpy1w=",
685
+ "parentSpanId": "GsZYkOB797w=",
686
+ "name": "invoke_agent researcher",
687
+ "kind": "SPAN_KIND_INTERNAL",
688
+ "startTimeUnixNano": "1794366329023907000",
689
+ "endTimeUnixNano": "1794366329078574000",
690
+ "attributes": [
691
+ {
692
+ "key": "model_name",
693
+ "value": {
694
+ "stringValue": "mock-small"
695
+ }
696
+ },
697
+ {
698
+ "key": "agent_name",
699
+ "value": {
700
+ "stringValue": "researcher"
701
+ }
702
+ },
703
+ {
704
+ "key": "gen_ai.agent.name",
705
+ "value": {
706
+ "stringValue": "researcher"
707
+ }
708
+ },
709
+ {
710
+ "key": "gen_ai.agent.call.id",
711
+ "value": {
712
+ "stringValue": "01a1c891-50be-75c8-bbcc-535af12995da"
713
+ }
714
+ },
715
+ {
716
+ "key": "gen_ai.conversation.id",
717
+ "value": {
718
+ "stringValue": "01a1c891-50be-75c8-bbcc-535b8c238b7b"
719
+ }
720
+ },
721
+ {
722
+ "key": "gen_ai.operation.name",
723
+ "value": {
724
+ "stringValue": "invoke_agent"
725
+ }
726
+ },
727
+ {
728
+ "key": "logfire.msg",
729
+ "value": {
730
+ "stringValue": "researcher run"
731
+ }
732
+ },
733
+ {
734
+ "key": "final_result",
735
+ "value": {
736
+ "stringValue": "found"
737
+ }
738
+ },
739
+ {
740
+ "key": "gen_ai.aggregated_usage.input_tokens",
741
+ "value": {
742
+ "intValue": "105"
743
+ }
744
+ },
745
+ {
746
+ "key": "gen_ai.aggregated_usage.output_tokens",
747
+ "value": {
748
+ "intValue": "11"
749
+ }
750
+ },
751
+ {
752
+ "key": "pydantic_ai.all_messages",
753
+ "value": {
754
+ "stringValue": "[{\"role\":\"user\",\"parts\":[{\"type\":\"text\",\"content\":\"otel\"}]},{\"role\":\"assistant\",\"parts\":[{\"type\":\"tool_call\",\"id\":\"pyd_ai_141bdafd8e874645b793c6b1195663cf\",\"name\":\"search\",\"arguments\":{\"term\":\"genai\"}}]},{\"role\":\"tool\",\"parts\":[{\"type\":\"tool_call_response\",\"id\":\"pyd_ai_141bdafd8e874645b793c6b1195663cf\",\"name\":\"search\",\"result\":\"result for genai\"}]},{\"role\":\"assistant\",\"parts\":[{\"type\":\"text\",\"content\":\"found\"}]}]"
755
+ }
756
+ },
757
+ {
758
+ "key": "logfire.json_schema",
759
+ "value": {
760
+ "stringValue": "{\"type\":\"object\",\"properties\":{\"pydantic_ai.all_messages\":{\"type\":\"array\"},\"final_result\":{\"type\":\"object\"}}}"
761
+ }
762
+ }
763
+ ],
764
+ "status": {},
765
+ "flags": 256
766
+ },
767
+ {
768
+ "traceId": "bW4ivYEzHZ/XW+EkFVGwMg==",
769
+ "spanId": "GsZYkOB797w=",
770
+ "parentSpanId": "U6acGw61EmE=",
771
+ "name": "execute_tool ask_researcher",
772
+ "kind": "SPAN_KIND_INTERNAL",
773
+ "startTimeUnixNano": "1794366329022536000",
774
+ "endTimeUnixNano": "1794366329078734000",
775
+ "attributes": [
776
+ {
777
+ "key": "gen_ai.operation.name",
778
+ "value": {
779
+ "stringValue": "execute_tool"
780
+ }
781
+ },
782
+ {
783
+ "key": "gen_ai.tool.name",
784
+ "value": {
785
+ "stringValue": "ask_researcher"
786
+ }
787
+ },
788
+ {
789
+ "key": "gen_ai.tool.call.id",
790
+ "value": {
791
+ "stringValue": "pyd_ai_552608d789994a288478a3ca64ea81a9"
792
+ }
793
+ },
794
+ {
795
+ "key": "gen_ai.tool.call.arguments",
796
+ "value": {
797
+ "stringValue": "{\"q\":\"otel\"}"
798
+ }
799
+ },
800
+ {
801
+ "key": "gen_ai.agent.name",
802
+ "value": {
803
+ "stringValue": "orchestrator"
804
+ }
805
+ },
806
+ {
807
+ "key": "gen_ai.agent.call.id",
808
+ "value": {
809
+ "stringValue": "01a1c891-50ae-701e-99fa-09b92ae89f1e"
810
+ }
811
+ },
812
+ {
813
+ "key": "gen_ai.conversation.id",
814
+ "value": {
815
+ "stringValue": "01a1c891-50ae-701e-99fa-09baf532480f"
816
+ }
817
+ },
818
+ {
819
+ "key": "logfire.msg",
820
+ "value": {
821
+ "stringValue": "running tool: ask_researcher"
822
+ }
823
+ },
824
+ {
825
+ "key": "logfire.json_schema",
826
+ "value": {
827
+ "stringValue": "{\"type\":\"object\",\"properties\":{\"gen_ai.tool.call.arguments\":{\"type\":\"object\"},\"gen_ai.tool.call.result\":{\"type\":\"object\"},\"gen_ai.tool.name\":{},\"gen_ai.tool.call.id\":{}}}"
828
+ }
829
+ },
830
+ {
831
+ "key": "gen_ai.tool.call.result",
832
+ "value": {
833
+ "stringValue": "found"
834
+ }
835
+ }
836
+ ],
837
+ "status": {},
838
+ "flags": 256
839
+ },
840
+ {
841
+ "traceId": "bW4ivYEzHZ/XW+EkFVGwMg==",
842
+ "spanId": "YpodCLCxKfw=",
843
+ "parentSpanId": "U6acGw61EmE=",
844
+ "name": "chat mock-large",
845
+ "kind": "SPAN_KIND_CLIENT",
846
+ "startTimeUnixNano": "1794366329079179000",
847
+ "endTimeUnixNano": "1794366329079626000",
848
+ "attributes": [
849
+ {
850
+ "key": "gen_ai.operation.name",
851
+ "value": {
852
+ "stringValue": "chat"
853
+ }
854
+ },
855
+ {
856
+ "key": "gen_ai.agent.name",
857
+ "value": {
858
+ "stringValue": "orchestrator"
859
+ }
860
+ },
861
+ {
862
+ "key": "gen_ai.agent.call.id",
863
+ "value": {
864
+ "stringValue": "01a1c891-50ae-701e-99fa-09b92ae89f1e"
865
+ }
866
+ },
867
+ {
868
+ "key": "gen_ai.conversation.id",
869
+ "value": {
870
+ "stringValue": "01a1c891-50ae-701e-99fa-09baf532480f"
871
+ }
872
+ },
873
+ {
874
+ "key": "gen_ai.provider.name",
875
+ "value": {
876
+ "stringValue": "function"
877
+ }
878
+ },
879
+ {
880
+ "key": "gen_ai.system",
881
+ "value": {
882
+ "stringValue": "function"
883
+ }
884
+ },
885
+ {
886
+ "key": "gen_ai.request.model",
887
+ "value": {
888
+ "stringValue": "mock-large"
889
+ }
890
+ },
891
+ {
892
+ "key": "model_request_parameters",
893
+ "value": {
894
+ "stringValue": "{\"function_tools\":[{\"name\":\"ask_researcher\",\"parameters_json_schema\":{\"additionalProperties\":false,\"properties\":{\"q\":{\"type\":\"string\"}},\"required\":[\"q\"],\"type\":\"object\"},\"description\":null,\"outer_typed_dict_key\":null,\"strict\":null,\"sequential\":false,\"kind\":\"function\",\"metadata\":null,\"timeout\":null,\"defer_loading\":false,\"unless_native\":null,\"with_native\":null,\"tool_kind\":null,\"unless_tool_kind\":null,\"return_schema\":null,\"include_return_schema\":null,\"toolset_id\":\"<agent>\",\"capability_id\":null},{\"name\":\"ask_writer\",\"parameters_json_schema\":{\"additionalProperties\":false,\"properties\":{\"q\":{\"type\":\"string\"}},\"required\":[\"q\"],\"type\":\"object\"},\"description\":null,\"outer_typed_dict_key\":null,\"strict\":null,\"sequential\":false,\"kind\":\"function\",\"metadata\":null,\"timeout\":null,\"defer_loading\":false,\"unless_native\":null,\"with_native\":null,\"tool_kind\":null,\"unless_tool_kind\":null,\"return_schema\":null,\"include_return_schema\":null,\"toolset_id\":\"<agent>\",\"capability_id\":null}],\"native_tools\":[],\"tool_visibility\":{\"ask_researcher\":\"visible\",\"ask_writer\":\"visible\"},\"revealed_tool_names\":[],\"introduced_tool_names\":[],\"deferred_capability_ids\":[],\"output_mode\":\"text\",\"output_object\":null,\"output_tools\":[],\"prompted_output_template\":null,\"allow_text_output\":true,\"allow_image_output\":false,\"instruction_parts\":null,\"instruction_visibility\":null,\"thinking\":null,\"cache\":null}"
895
+ }
896
+ },
897
+ {
898
+ "key": "gen_ai.tool.definitions",
899
+ "value": {
900
+ "stringValue": "[{\"type\":\"function\",\"name\":\"ask_researcher\",\"parameters\":{\"additionalProperties\":false,\"properties\":{\"q\":{\"type\":\"string\"}},\"required\":[\"q\"],\"type\":\"object\"}},{\"type\":\"function\",\"name\":\"ask_writer\",\"parameters\":{\"additionalProperties\":false,\"properties\":{\"q\":{\"type\":\"string\"}},\"required\":[\"q\"],\"type\":\"object\"}}]"
901
+ }
902
+ },
903
+ {
904
+ "key": "gen_ai.input.messages",
905
+ "value": {
906
+ "stringValue": "[{\"role\":\"user\",\"parts\":[{\"type\":\"text\",\"content\":\"plan it\"}]},{\"role\":\"assistant\",\"parts\":[{\"type\":\"tool_call\",\"id\":\"pyd_ai_552608d789994a288478a3ca64ea81a9\",\"name\":\"ask_researcher\",\"arguments\":{\"q\":\"otel\"}},{\"type\":\"tool_call\",\"id\":\"pyd_ai_f3e82b9923d2453096b620b55e9df6f8\",\"name\":\"ask_writer\",\"arguments\":{\"q\":\"draft\"}}]},{\"role\":\"tool\",\"parts\":[{\"type\":\"tool_call_response\",\"id\":\"pyd_ai_552608d789994a288478a3ca64ea81a9\",\"name\":\"ask_researcher\",\"result\":\"found\"},{\"type\":\"tool_call_response\",\"id\":\"pyd_ai_f3e82b9923d2453096b620b55e9df6f8\",\"name\":\"ask_writer\",\"result\":\"written\"}]}]"
907
+ }
908
+ },
909
+ {
910
+ "key": "gen_ai.output.messages",
911
+ "value": {
912
+ "stringValue": "[{\"role\":\"assistant\",\"parts\":[{\"type\":\"text\",\"content\":\"done\"}]}]"
913
+ }
914
+ },
915
+ {
916
+ "key": "logfire.json_schema",
917
+ "value": {
918
+ "stringValue": "{\"type\":\"object\",\"properties\":{\"gen_ai.input.messages\":{\"type\":\"array\"},\"gen_ai.output.messages\":{\"type\":\"array\"},\"model_request_parameters\":{\"type\":\"object\"}}}"
919
+ }
920
+ },
921
+ {
922
+ "key": "gen_ai.usage.input_tokens",
923
+ "value": {
924
+ "intValue": "54"
925
+ }
926
+ },
927
+ {
928
+ "key": "gen_ai.usage.output_tokens",
929
+ "value": {
930
+ "intValue": "11"
931
+ }
932
+ },
933
+ {
934
+ "key": "gen_ai.response.model",
935
+ "value": {
936
+ "stringValue": "mock-large"
937
+ }
938
+ }
939
+ ],
940
+ "status": {},
941
+ "flags": 256
942
+ },
943
+ {
944
+ "traceId": "bW4ivYEzHZ/XW+EkFVGwMg==",
945
+ "spanId": "U6acGw61EmE=",
946
+ "name": "invoke_agent orchestrator",
947
+ "kind": "SPAN_KIND_INTERNAL",
948
+ "startTimeUnixNano": "1794366329012051000",
949
+ "endTimeUnixNano": "1794366329080015000",
950
+ "attributes": [
951
+ {
952
+ "key": "model_name",
953
+ "value": {
954
+ "stringValue": "mock-large"
955
+ }
956
+ },
957
+ {
958
+ "key": "agent_name",
959
+ "value": {
960
+ "stringValue": "orchestrator"
961
+ }
962
+ },
963
+ {
964
+ "key": "gen_ai.agent.name",
965
+ "value": {
966
+ "stringValue": "orchestrator"
967
+ }
968
+ },
969
+ {
970
+ "key": "gen_ai.agent.call.id",
971
+ "value": {
972
+ "stringValue": "01a1c891-50ae-701e-99fa-09b92ae89f1e"
973
+ }
974
+ },
975
+ {
976
+ "key": "gen_ai.conversation.id",
977
+ "value": {
978
+ "stringValue": "01a1c891-50ae-701e-99fa-09baf532480f"
979
+ }
980
+ },
981
+ {
982
+ "key": "gen_ai.operation.name",
983
+ "value": {
984
+ "stringValue": "invoke_agent"
985
+ }
986
+ },
987
+ {
988
+ "key": "logfire.msg",
989
+ "value": {
990
+ "stringValue": "orchestrator run"
991
+ }
992
+ },
993
+ {
994
+ "key": "final_result",
995
+ "value": {
996
+ "stringValue": "done"
997
+ }
998
+ },
999
+ {
1000
+ "key": "gen_ai.aggregated_usage.input_tokens",
1001
+ "value": {
1002
+ "intValue": "106"
1003
+ }
1004
+ },
1005
+ {
1006
+ "key": "gen_ai.aggregated_usage.output_tokens",
1007
+ "value": {
1008
+ "intValue": "21"
1009
+ }
1010
+ },
1011
+ {
1012
+ "key": "pydantic_ai.all_messages",
1013
+ "value": {
1014
+ "stringValue": "[{\"role\":\"user\",\"parts\":[{\"type\":\"text\",\"content\":\"plan it\"}]},{\"role\":\"assistant\",\"parts\":[{\"type\":\"tool_call\",\"id\":\"pyd_ai_552608d789994a288478a3ca64ea81a9\",\"name\":\"ask_researcher\",\"arguments\":{\"q\":\"otel\"}},{\"type\":\"tool_call\",\"id\":\"pyd_ai_f3e82b9923d2453096b620b55e9df6f8\",\"name\":\"ask_writer\",\"arguments\":{\"q\":\"draft\"}}]},{\"role\":\"tool\",\"parts\":[{\"type\":\"tool_call_response\",\"id\":\"pyd_ai_552608d789994a288478a3ca64ea81a9\",\"name\":\"ask_researcher\",\"result\":\"found\"},{\"type\":\"tool_call_response\",\"id\":\"pyd_ai_f3e82b9923d2453096b620b55e9df6f8\",\"name\":\"ask_writer\",\"result\":\"written\"}]},{\"role\":\"assistant\",\"parts\":[{\"type\":\"text\",\"content\":\"done\"}]}]"
1015
+ }
1016
+ },
1017
+ {
1018
+ "key": "logfire.json_schema",
1019
+ "value": {
1020
+ "stringValue": "{\"type\":\"object\",\"properties\":{\"pydantic_ai.all_messages\":{\"type\":\"array\"},\"final_result\":{\"type\":\"object\"}}}"
1021
+ }
1022
+ }
1023
+ ],
1024
+ "status": {},
1025
+ "flags": 256
1026
+ }
1027
+ ]
1028
+ }
1029
+ ]
1030
+ }
1031
+ ]
1032
+ }