|
1 | 1 | { |
2 | 2 | "appName": "node_as_tool", |
| 3 | + "id": "12345678-1234-1234-1234-123456789abc", |
| 4 | + "userId": "user", |
3 | 5 | "events": [ |
4 | 6 | { |
5 | | - "author": "user", |
6 | 7 | "content": { |
7 | 8 | "parts": [ |
8 | 9 | { |
9 | | - "text": "What discount does customer c123 get?" |
| 10 | + "functionCall": { |
| 11 | + "id": "fc-3", |
| 12 | + "args": { |
| 13 | + "interruptId": "fc-3", |
| 14 | + "payload": null, |
| 15 | + "message": "Apply VIP discount for tier 'Verified VIP Member'?", |
| 16 | + "response_schema": null |
| 17 | + }, |
| 18 | + "name": "adk_request_input" |
| 19 | + } |
| 20 | + } |
| 21 | + ] |
| 22 | + }, |
| 23 | + "author": "calculate_discount", |
| 24 | + "nodeInfo": { |
| 25 | + "path": "calculate_discount@1" |
| 26 | + }, |
| 27 | + "longRunningToolIds": [ |
| 28 | + "fc-3" |
| 29 | + ], |
| 30 | + "branch": "calculate_discount@fc-2" |
| 31 | + }, |
| 32 | + { |
| 33 | + "content": { |
| 34 | + "parts": [ |
| 35 | + { |
| 36 | + "text": "Checking discount rules for tier 'Verified VIP Member'..." |
10 | 37 | } |
11 | 38 | ], |
12 | 39 | "role": "user" |
13 | 40 | }, |
14 | | - "id": "e-1", |
15 | | - "invocationId": "i-1", |
| 41 | + "author": "calculate_discount", |
16 | 42 | "nodeInfo": { |
17 | | - "path": "" |
18 | | - } |
| 43 | + "path": "calculate_discount@1" |
| 44 | + }, |
| 45 | + "branch": "calculate_discount@fc-2" |
19 | 46 | }, |
20 | 47 | { |
21 | | - "author": "customer_service_agent", |
22 | 48 | "content": { |
23 | 49 | "parts": [ |
24 | 50 | { |
25 | | - "functionCall": { |
26 | | - "args": { |
27 | | - "user_id": "c123" |
28 | | - }, |
29 | | - "id": "fc-1", |
30 | | - "name": "customer_lookup_workflow" |
31 | | - } |
| 51 | + "text": "Checking discount rules for tier 'Verified VIP Member'..." |
32 | 52 | } |
33 | 53 | ], |
34 | | - "role": "model" |
| 54 | + "role": "user" |
35 | 55 | }, |
36 | | - "id": "e-2", |
37 | | - "invocationId": "i-1", |
38 | | - "longRunningToolIds": [ |
39 | | - "fc-1" |
40 | | - ], |
| 56 | + "author": "calculate_discount", |
41 | 57 | "nodeInfo": { |
42 | | - "path": "customer_service_agent@1" |
43 | | - } |
| 58 | + "path": "calculate_discount@1" |
| 59 | + }, |
| 60 | + "branch": "calculate_discount@fc-2" |
| 61 | + }, |
| 62 | + { |
| 63 | + "author": "calculate_discount", |
| 64 | + "output": "20% off", |
| 65 | + "nodeInfo": { |
| 66 | + "path": "calculate_discount@1", |
| 67 | + "outputFor": [ |
| 68 | + "calculate_discount@1" |
| 69 | + ] |
| 70 | + }, |
| 71 | + "branch": "calculate_discount@fc-2" |
44 | 72 | }, |
45 | 73 | { |
46 | 74 | "author": "customer_lookup_workflow", |
47 | | - "branch": "customer_lookup_workflow@fc-1", |
48 | | - "id": "e-3", |
49 | | - "invocationId": "i-1", |
| 75 | + "output": { |
| 76 | + "user_id": "c123", |
| 77 | + "tier": "Verified VIP Member" |
| 78 | + }, |
50 | 79 | "nodeInfo": { |
| 80 | + "path": "customer_lookup_workflow@1/lookup_customer_data@1", |
51 | 81 | "outputFor": [ |
52 | 82 | "customer_lookup_workflow@1/lookup_customer_data@1", |
53 | 83 | "customer_lookup_workflow@1" |
54 | | - ], |
55 | | - "path": "customer_lookup_workflow@1/lookup_customer_data@1" |
| 84 | + ] |
56 | 85 | }, |
57 | | - "output": { |
58 | | - "tier": "Verified VIP Member", |
59 | | - "user_id": "c123" |
60 | | - } |
| 86 | + "branch": "customer_lookup_workflow@fc-1" |
61 | 87 | }, |
62 | 88 | { |
63 | | - "author": "customer_service_agent", |
64 | 89 | "content": { |
65 | 90 | "parts": [ |
66 | 91 | { |
67 | | - "functionResponse": { |
68 | | - "id": "fc-1", |
69 | | - "name": "customer_lookup_workflow", |
70 | | - "response": { |
71 | | - "tier": "Verified VIP Member", |
72 | | - "user_id": "c123" |
73 | | - } |
| 92 | + "functionCall": { |
| 93 | + "id": "fc-2", |
| 94 | + "args": { |
| 95 | + "tier": "Verified VIP Member" |
| 96 | + }, |
| 97 | + "name": "calculate_discount" |
74 | 98 | } |
75 | 99 | } |
76 | 100 | ], |
77 | | - "role": "user" |
| 101 | + "role": "model" |
78 | 102 | }, |
79 | | - "id": "e-4", |
80 | | - "invocationId": "i-1", |
| 103 | + "author": "customer_service_agent", |
81 | 104 | "nodeInfo": { |
82 | 105 | "path": "customer_service_agent@1" |
83 | | - } |
| 106 | + }, |
| 107 | + "longRunningToolIds": [ |
| 108 | + "fc-2" |
| 109 | + ] |
84 | 110 | }, |
85 | 111 | { |
86 | | - "author": "customer_service_agent", |
87 | 112 | "content": { |
88 | 113 | "parts": [ |
89 | 114 | { |
90 | 115 | "functionCall": { |
| 116 | + "id": "fc-1", |
91 | 117 | "args": { |
92 | | - "tier": "Verified VIP Member" |
| 118 | + "user_id": "c123" |
93 | 119 | }, |
94 | | - "id": "fc-2", |
95 | | - "name": "calculate_discount" |
| 120 | + "name": "customer_lookup_workflow" |
96 | 121 | } |
97 | 122 | } |
98 | 123 | ], |
99 | 124 | "role": "model" |
100 | 125 | }, |
101 | | - "id": "e-5", |
102 | | - "invocationId": "i-1", |
103 | | - "longRunningToolIds": [ |
104 | | - "fc-2" |
105 | | - ], |
| 126 | + "author": "customer_service_agent", |
106 | 127 | "nodeInfo": { |
107 | 128 | "path": "customer_service_agent@1" |
108 | | - } |
| 129 | + }, |
| 130 | + "longRunningToolIds": [ |
| 131 | + "fc-1" |
| 132 | + ] |
109 | 133 | }, |
110 | | - |
111 | 134 | { |
112 | | - "author": "calculate_discount", |
113 | | - "branch": "calculate_discount@fc-2", |
114 | 135 | "content": { |
115 | 136 | "parts": [ |
116 | 137 | { |
117 | | - "text": "Checking discount rules for tier 'Verified VIP Member'..." |
| 138 | + "functionResponse": { |
| 139 | + "id": "fc-1", |
| 140 | + "name": "customer_lookup_workflow", |
| 141 | + "response": { |
| 142 | + "user_id": "c123", |
| 143 | + "tier": "Verified VIP Member" |
| 144 | + } |
| 145 | + } |
118 | 146 | } |
119 | 147 | ], |
120 | 148 | "role": "user" |
121 | 149 | }, |
122 | | - "id": "e-6", |
123 | | - "invocationId": "i-1", |
| 150 | + "author": "customer_service_agent", |
124 | 151 | "nodeInfo": { |
125 | | - "path": "calculate_discount@1" |
| 152 | + "path": "customer_service_agent@1" |
126 | 153 | } |
127 | 154 | }, |
128 | 155 | { |
129 | | - "author": "calculate_discount", |
130 | | - "branch": "calculate_discount@fc-2", |
131 | | - "id": "e-7", |
132 | | - "invocationId": "i-1", |
133 | | - "nodeInfo": { |
134 | | - "outputFor": [ |
135 | | - "calculate_discount@1" |
136 | | - ], |
137 | | - "path": "calculate_discount@1" |
138 | | - }, |
139 | | - "output": "20% off" |
140 | | - }, |
141 | | - { |
142 | | - "author": "customer_service_agent", |
143 | 156 | "content": { |
144 | 157 | "parts": [ |
145 | 158 | { |
|
154 | 167 | ], |
155 | 168 | "role": "user" |
156 | 169 | }, |
157 | | - "id": "e-8", |
158 | | - "invocationId": "i-1", |
| 170 | + "author": "customer_service_agent", |
159 | 171 | "nodeInfo": { |
160 | 172 | "path": "customer_service_agent@1" |
161 | 173 | } |
162 | 174 | }, |
163 | 175 | { |
164 | | - "author": "customer_service_agent", |
165 | 176 | "content": { |
166 | 177 | "parts": [ |
167 | 178 | { |
|
170 | 181 | ], |
171 | 182 | "role": "model" |
172 | 183 | }, |
173 | | - "id": "e-9", |
174 | | - "invocationId": "i-1", |
| 184 | + "author": "customer_service_agent", |
175 | 185 | "nodeInfo": { |
176 | 186 | "path": "customer_service_agent@1" |
177 | 187 | } |
| 188 | + }, |
| 189 | + { |
| 190 | + "content": { |
| 191 | + "parts": [ |
| 192 | + { |
| 193 | + "functionResponse": { |
| 194 | + "id": "fc-3", |
| 195 | + "name": "adk_request_input", |
| 196 | + "response": { |
| 197 | + "text": "yes" |
| 198 | + } |
| 199 | + } |
| 200 | + } |
| 201 | + ], |
| 202 | + "role": "user" |
| 203 | + }, |
| 204 | + "author": "user", |
| 205 | + "nodeInfo": { |
| 206 | + "path": "" |
| 207 | + }, |
| 208 | + "branch": "calculate_discount@fc-2" |
178 | 209 | } |
179 | | - ], |
180 | | - "id": "12345678-1234-1234-1234-123456789abc", |
181 | | - "userId": "user" |
| 210 | + ] |
182 | 211 | } |
0 commit comments