Skip to content

Commit c88caac

Browse files
boyangsvlJacksunwei
authored andcommitted
all sample tests pass.
Change-Id: I3708748489a49726fb9822e3eec404b1b88033ad
1 parent ab60439 commit c88caac

6 files changed

Lines changed: 157 additions & 159 deletions

File tree

contributing/workflow_samples/parallel_worker/tests/flower.json

Lines changed: 92 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"content": {
4646
"parts": [
4747
{
48-
"text": "[\n\"Gardening\",\n\"Plants\",\n\"Pollination\"\n]"
48+
"text": "[\"Botany\", \"Gardening\", \"Pollination\"]"
4949
}
5050
],
5151
"role": "model"
@@ -68,7 +68,7 @@
6868
{
6969
"invocationId": "i-1",
7070
"author": "root_agent",
71-
"output": "GARDENING",
71+
"output": "BOTANY",
7272
"nodeInfo": {
7373
"path": "root_agent@1/make_upper_case@1/make_upper_case@1",
7474
"runId": "1",
@@ -82,7 +82,7 @@
8282
{
8383
"invocationId": "i-1",
8484
"author": "root_agent",
85-
"output": "PLANTS",
85+
"output": "GARDENING",
8686
"nodeInfo": {
8787
"path": "root_agent@1/make_upper_case@1/make_upper_case@2",
8888
"runId": "2",
@@ -111,8 +111,8 @@
111111
"invocationId": "i-1",
112112
"author": "root_agent",
113113
"output": [
114+
"BOTANY",
114115
"GARDENING",
115-
"PLANTS",
116116
"POLLINATION"
117117
],
118118
"nodeInfo": {
@@ -129,7 +129,7 @@
129129
"content": {
130130
"parts": [
131131
{
132-
"text": "{\"topic\": \"GARDENING\", \"explanation\": \"Flowers are a fundamental element in gardening, often cultivated for their aesthetic appeal, fragrance, and sometimes for producing fruits or seeds. They are a primary focus in many garden designs and practices.\"}"
132+
"text": "{\"topic\": \"BOTANY\", \"explanation\": \"BOTANY is the scientific study of plants. Flowers are a primary reproductive structure of many plants, particularly angiosperms, and as such, they are a fundamental subject of study within BOTANY. This includes their morphology, physiology, genetics, evolution, and ecological roles, such as pollination.\"}"
133133
}
134134
],
135135
"role": "model"
@@ -138,28 +138,109 @@
138138
"invocationId": "i-1",
139139
"author": "root_agent",
140140
"nodeInfo": {
141-
"path": "root_agent@1/explain_topic@1",
141+
"path": "root_agent@1/explain_topic@1/explain_topic@1",
142142
"runId": "1",
143143
"parentRunId": "1",
144144
"outputFor": [
145-
"root_agent@1/explain_topic@1"
145+
"root_agent@1/explain_topic@1/explain_topic@1"
146146
],
147147
"messageAsOutput": true
148148
},
149-
"branch": "node:root_agent@1/explain_topic@1.explain_topic",
149+
"branch": "node:root_agent@1/explain_topic@1/explain_topic@1.explain_topic",
150150
"id": "e-11"
151151
},
152152
{
153-
"errorCode": "ValidationError",
154-
"errorMessage": "1 validation error for list[TopicExplanation]\n Input should be a valid list [type=list_type, input_value={'topic': 'GARDENING', 'e...designs and practices.'}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.12/v/list_type",
153+
"content": {
154+
"parts": [
155+
{
156+
"text": "{\"topic\": \"GARDENING\", \"explanation\": \"GARDENING is directly related to 'flower' as it is the activity of cultivating and caring for plants, which frequently includes growing various types of flowers for their beauty, scent, or other purposes. Flowers are a common and central element within gardening practices, whether in a flower bed, a pot, or a larger landscape.\"}"
157+
}
158+
],
159+
"role": "model"
160+
},
161+
"finishReason": "STOP",
162+
"invocationId": "i-1",
163+
"author": "root_agent",
164+
"nodeInfo": {
165+
"path": "root_agent@1/explain_topic@1/explain_topic@2",
166+
"runId": "2",
167+
"parentRunId": "1",
168+
"outputFor": [
169+
"root_agent@1/explain_topic@1/explain_topic@2"
170+
],
171+
"messageAsOutput": true
172+
},
173+
"branch": "node:root_agent@1/explain_topic@1/explain_topic@2.explain_topic",
174+
"id": "e-14"
175+
},
176+
{
177+
"content": {
178+
"parts": [
179+
{
180+
"text": "{\"topic\": \"POLLINATION\", \"explanation\": \"Pollination is the process by which pollen is transferred from the anther (male part) to the stigma (female part) of a flower, or from flower to flower. It is a crucial step in the life cycle of flowering plants, enabling fertilization and the production of seeds and fruits. Therefore, flowers are the primary structures involved in and facilitating the process of pollination.\"}"
181+
}
182+
],
183+
"role": "model"
184+
},
185+
"finishReason": "STOP",
186+
"invocationId": "i-1",
187+
"author": "root_agent",
188+
"nodeInfo": {
189+
"path": "root_agent@1/explain_topic@1/explain_topic@3",
190+
"runId": "3",
191+
"parentRunId": "1",
192+
"outputFor": [
193+
"root_agent@1/explain_topic@1/explain_topic@3"
194+
],
195+
"messageAsOutput": true
196+
},
197+
"branch": "node:root_agent@1/explain_topic@1/explain_topic@3.explain_topic",
198+
"id": "e-17"
199+
},
200+
{
201+
"invocationId": "i-1",
202+
"author": "root_agent",
203+
"output": [
204+
{
205+
"topic": "BOTANY",
206+
"explanation": "BOTANY is the scientific study of plants. Flowers are a primary reproductive structure of many plants, particularly angiosperms, and as such, they are a fundamental subject of study within BOTANY. This includes their morphology, physiology, genetics, evolution, and ecological roles, such as pollination."
207+
},
208+
{
209+
"topic": "GARDENING",
210+
"explanation": "GARDENING is directly related to 'flower' as it is the activity of cultivating and caring for plants, which frequently includes growing various types of flowers for their beauty, scent, or other purposes. Flowers are a common and central element within gardening practices, whether in a flower bed, a pot, or a larger landscape."
211+
},
212+
{
213+
"topic": "POLLINATION",
214+
"explanation": "Pollination is the process by which pollen is transferred from the anther (male part) to the stigma (female part) of a flower, or from flower to flower. It is a crucial step in the life cycle of flowering plants, enabling fertilization and the production of seeds and fruits. Therefore, flowers are the primary structures involved in and facilitating the process of pollination."
215+
}
216+
],
217+
"nodeInfo": {
218+
"path": "root_agent@1/explain_topic@1",
219+
"runId": "1",
220+
"parentRunId": "1",
221+
"outputFor": [
222+
"root_agent@1/explain_topic@1"
223+
]
224+
},
225+
"id": "e-19"
226+
},
227+
{
228+
"content": {
229+
"parts": [
230+
{
231+
"text": "BOTANY: BOTANY is the scientific study of plants. Flowers are a primary reproductive structure of many plants, particularly angiosperms, and as such, they are a fundamental subject of study within BOTANY. This includes their morphology, physiology, genetics, evolution, and ecological roles, such as pollination.\n\n---\n\nGARDENING: GARDENING is directly related to 'flower' as it is the activity of cultivating and caring for plants, which frequently includes growing various types of flowers for their beauty, scent, or other purposes. Flowers are a common and central element within gardening practices, whether in a flower bed, a pot, or a larger landscape.\n\n---\n\nPOLLINATION: Pollination is the process by which pollen is transferred from the anther (male part) to the stigma (female part) of a flower, or from flower to flower. It is a crucial step in the life cycle of flowering plants, enabling fertilization and the production of seeds and fruits. Therefore, flowers are the primary structures involved in and facilitating the process of pollination."
232+
}
233+
],
234+
"role": "user"
235+
},
155236
"invocationId": "i-1",
156237
"author": "root_agent",
157238
"nodeInfo": {
158239
"path": "root_agent@1/aggregate@1",
159240
"runId": "1",
160241
"parentRunId": "1"
161242
},
162-
"id": "e-13"
243+
"id": "e-20"
163244
}
164245
]
165246
}

0 commit comments

Comments
 (0)