Skip to content

Commit 4476854

Browse files
committed
feat(events): make run_id calculated and remove from JSON dump
Change-Id: Ida7d49b36bf6f590796f5c22ca26e5dc121352a5
1 parent 7127b61 commit 4476854

73 files changed

Lines changed: 1146 additions & 1579 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

contributing/agent_samples/callbacks/tests/hi.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"invocationId": "i-1",
1313
"author": "user",
1414
"nodeInfo": {
15-
"path": "",
16-
"runId": ""
15+
"path": ""
1716
},
1817
"id": "e-1"
1918
},
@@ -29,8 +28,7 @@
2928
"invocationId": "i-1",
3029
"author": "callback_demo_agent",
3130
"nodeInfo": {
32-
"path": "callback_demo_agent@1",
33-
"runId": "1"
31+
"path": "callback_demo_agent@1"
3432
},
3533
"id": "e-3"
3634
}

contributing/agent_samples/callbacks/tests/weather_in_london.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"invocationId": "i-1",
1313
"author": "user",
1414
"nodeInfo": {
15-
"path": "",
16-
"runId": ""
15+
"path": ""
1716
},
1817
"id": "e-1"
1918
},
@@ -39,8 +38,7 @@
3938
"invocationId": "i-1",
4039
"author": "callback_demo_agent",
4140
"nodeInfo": {
42-
"path": "callback_demo_agent@1",
43-
"runId": "1"
41+
"path": "callback_demo_agent@1"
4442
},
4543
"longRunningToolIds": [],
4644
"id": "e-3"
@@ -63,8 +61,7 @@
6361
"invocationId": "i-1",
6462
"author": "callback_demo_agent",
6563
"nodeInfo": {
66-
"path": "callback_demo_agent@1",
67-
"runId": "1"
64+
"path": "callback_demo_agent@1"
6865
},
6966
"id": "e-5"
7067
},
@@ -84,8 +81,7 @@
8481
"invocationId": "i-1",
8582
"author": "callback_demo_agent",
8683
"nodeInfo": {
87-
"path": "callback_demo_agent@1",
88-
"runId": "1"
84+
"path": "callback_demo_agent@1"
8985
},
9086
"id": "e-7"
9187
}

contributing/agent_samples/callbacks/tests/weather_in_sunnyvale.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"invocationId": "i-1",
1313
"author": "user",
1414
"nodeInfo": {
15-
"path": "",
16-
"runId": ""
15+
"path": ""
1716
},
1817
"id": "e-1"
1918
},
@@ -39,8 +38,7 @@
3938
"invocationId": "i-1",
4039
"author": "callback_demo_agent",
4140
"nodeInfo": {
42-
"path": "callback_demo_agent@1",
43-
"runId": "1"
41+
"path": "callback_demo_agent@1"
4442
},
4543
"longRunningToolIds": [],
4644
"id": "e-3"
@@ -63,8 +61,7 @@
6361
"invocationId": "i-1",
6462
"author": "callback_demo_agent",
6563
"nodeInfo": {
66-
"path": "callback_demo_agent@1",
67-
"runId": "1"
64+
"path": "callback_demo_agent@1"
6865
},
6966
"id": "e-5"
7067
},
@@ -84,8 +81,7 @@
8481
"invocationId": "i-1",
8582
"author": "callback_demo_agent",
8683
"nodeInfo": {
87-
"path": "callback_demo_agent@1",
88-
"runId": "1"
84+
"path": "callback_demo_agent@1"
8985
},
9086
"id": "e-7"
9187
}

contributing/agent_samples/empty_agent/tests/go.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"invocationId": "i-1",
1313
"author": "user",
1414
"nodeInfo": {
15-
"path": "",
16-
"runId": ""
15+
"path": ""
1716
},
1817
"id": "e-1"
1918
},
@@ -30,8 +29,7 @@
3029
"invocationId": "i-1",
3130
"author": "empty_agent",
3231
"nodeInfo": {
33-
"path": "empty_agent@1",
34-
"runId": "1"
32+
"path": "empty_agent@1"
3533
},
3634
"id": "e-3"
3735
}

contributing/agent_samples/function_tools/tests/a_random_number.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"invocationId": "i-1",
1313
"author": "user",
1414
"nodeInfo": {
15-
"path": "",
16-
"runId": ""
15+
"path": ""
1716
},
1817
"id": "e-1"
1918
},
@@ -34,8 +33,7 @@
3433
"invocationId": "i-1",
3534
"author": "function_tools",
3635
"nodeInfo": {
37-
"path": "function_tools@1",
38-
"runId": "1"
36+
"path": "function_tools@1"
3937
},
4038
"longRunningToolIds": [],
4139
"id": "e-3"
@@ -58,8 +56,7 @@
5856
"invocationId": "i-1",
5957
"author": "function_tools",
6058
"nodeInfo": {
61-
"path": "function_tools@1",
62-
"runId": "1"
59+
"path": "function_tools@1"
6360
},
6461
"id": "e-5"
6562
},
@@ -76,8 +73,7 @@
7673
"invocationId": "i-1",
7774
"author": "function_tools",
7875
"nodeInfo": {
79-
"path": "function_tools@1",
80-
"runId": "1"
76+
"path": "function_tools@1"
8177
},
8278
"id": "e-7"
8379
}

contributing/agent_samples/function_tools/tests/a_random_number_and_check_even.json

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"invocationId": "i-1",
1313
"author": "user",
1414
"nodeInfo": {
15-
"path": "",
16-
"runId": ""
15+
"path": ""
1716
},
1817
"id": "e-1"
1918
},
@@ -34,8 +33,7 @@
3433
"invocationId": "i-1",
3534
"author": "function_tools",
3635
"nodeInfo": {
37-
"path": "function_tools@1",
38-
"runId": "1"
36+
"path": "function_tools@1"
3937
},
4038
"longRunningToolIds": [],
4139
"id": "e-3"
@@ -58,8 +56,7 @@
5856
"invocationId": "i-1",
5957
"author": "function_tools",
6058
"nodeInfo": {
61-
"path": "function_tools@1",
62-
"runId": "1"
59+
"path": "function_tools@1"
6360
},
6461
"id": "e-5"
6562
},
@@ -82,8 +79,7 @@
8279
"invocationId": "i-1",
8380
"author": "function_tools",
8481
"nodeInfo": {
85-
"path": "function_tools@1",
86-
"runId": "1"
82+
"path": "function_tools@1"
8783
},
8884
"longRunningToolIds": [],
8985
"id": "e-7"
@@ -106,8 +102,7 @@
106102
"invocationId": "i-1",
107103
"author": "function_tools",
108104
"nodeInfo": {
109-
"path": "function_tools@1",
110-
"runId": "1"
105+
"path": "function_tools@1"
111106
},
112107
"id": "e-9"
113108
},
@@ -124,8 +119,7 @@
124119
"invocationId": "i-1",
125120
"author": "function_tools",
126121
"nodeInfo": {
127-
"path": "function_tools@1",
128-
"runId": "1"
122+
"path": "function_tools@1"
129123
},
130124
"id": "e-11"
131125
}

contributing/agent_samples/function_tools/tests/random_number_and_is_5_even.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"invocationId": "i-1",
1313
"author": "user",
1414
"nodeInfo": {
15-
"path": "",
16-
"runId": ""
15+
"path": ""
1716
},
1817
"id": "e-1"
1918
},
@@ -43,8 +42,7 @@
4342
"invocationId": "i-1",
4443
"author": "function_tools",
4544
"nodeInfo": {
46-
"path": "function_tools@1",
47-
"runId": "1"
45+
"path": "function_tools@1"
4846
},
4947
"longRunningToolIds": [],
5048
"id": "e-3"
@@ -76,8 +74,7 @@
7674
"invocationId": "i-1",
7775
"author": "function_tools",
7876
"nodeInfo": {
79-
"path": "function_tools@1",
80-
"runId": "1"
77+
"path": "function_tools@1"
8178
},
8279
"id": "e-7"
8380
},
@@ -94,8 +91,7 @@
9491
"invocationId": "i-1",
9592
"author": "function_tools",
9693
"nodeInfo": {
97-
"path": "function_tools@1",
98-
"runId": "1"
94+
"path": "function_tools@1"
9995
},
10096
"id": "e-9"
10197
}

contributing/agent_samples/sub_agents/tests/check_status.json

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"invocationId": "i-1",
1313
"author": "user",
1414
"nodeInfo": {
15-
"path": "",
16-
"runId": ""
15+
"path": ""
1716
},
1817
"id": "e-1"
1918
},
@@ -36,8 +35,7 @@
3635
"invocationId": "i-1",
3736
"author": "sub_agents",
3837
"nodeInfo": {
39-
"path": "sub_agents@1",
40-
"runId": "1"
38+
"path": "sub_agents@1"
4139
},
4240
"longRunningToolIds": [],
4341
"id": "e-3"
@@ -63,8 +61,7 @@
6361
"transferToAgent": "info_agent"
6462
},
6563
"nodeInfo": {
66-
"path": "sub_agents@1",
67-
"runId": "1"
64+
"path": "sub_agents@1"
6865
},
6966
"id": "e-5"
7067
},
@@ -87,9 +84,7 @@
8784
"invocationId": "i-1",
8885
"author": "info_agent",
8986
"nodeInfo": {
90-
"path": "sub_agents@1/info_agent@1",
91-
"runId": "1",
92-
"parentRunId": "1"
87+
"path": "sub_agents@1/info_agent@1"
9388
},
9489
"longRunningToolIds": [],
9590
"id": "e-9"
@@ -112,9 +107,7 @@
112107
"invocationId": "i-1",
113108
"author": "info_agent",
114109
"nodeInfo": {
115-
"path": "sub_agents@1/info_agent@1",
116-
"runId": "1",
117-
"parentRunId": "1"
110+
"path": "sub_agents@1/info_agent@1"
118111
},
119112
"id": "e-11"
120113
},
@@ -131,9 +124,7 @@
131124
"invocationId": "i-1",
132125
"author": "info_agent",
133126
"nodeInfo": {
134-
"path": "sub_agents@1/info_agent@1",
135-
"runId": "1",
136-
"parentRunId": "1"
127+
"path": "sub_agents@1/info_agent@1"
137128
},
138129
"id": "e-15"
139130
}

0 commit comments

Comments
 (0)