Files
Bo Yang ed8add2e9b test(cli): Make JSON test files deterministic and sequential
Sort keys when saving rebuilt JSON test files and re-assign sequential event IDs to avoid gaps from filtered events. Also applied these changes to all existing test files in the contributing folder.

Change-Id: Ib126228f016db1d28030eee4f7d9d8cbc604e038
2026-04-10 11:08:42 -07:00

94 lines
2.0 KiB
JSON

{
"events": [
{
"author": "user",
"content": {
"parts": [
{
"text": "computer"
}
],
"role": "user"
},
"id": "e-1",
"invocationId": "i-1",
"nodeInfo": {
"path": ""
}
},
{
"actions": {
"stateDelta": {
"topic": "computer"
}
},
"author": "root_agent",
"id": "e-2",
"invocationId": "i-1",
"nodeInfo": {
"path": "root_agent@1/process_input@1"
}
},
{
"author": "root_agent",
"content": {
"parts": [
{
"text": "Computers: Shaping Our World"
}
],
"role": "model"
},
"finishReason": "STOP",
"id": "e-3",
"invocationId": "i-1",
"nodeInfo": {
"messageAsOutput": true,
"outputFor": [
"root_agent@1/generate_headline@1"
],
"path": "root_agent@1/generate_headline@1"
}
},
{
"actions": {
"stateDelta": {
"feedback": {
"feedback": "This headline is clearly tech-related as it directly discusses computers.",
"grade": "tech-related"
}
}
},
"author": "root_agent",
"content": {
"parts": [
{
"text": "{\"grade\": \"tech-related\", \"feedback\": \"This headline is clearly tech-related as it directly discusses computers.\"}"
}
],
"role": "model"
},
"finishReason": "STOP",
"id": "e-4",
"invocationId": "i-1",
"nodeInfo": {
"messageAsOutput": true,
"outputFor": [
"root_agent@1/evaluate_headline@1"
],
"path": "root_agent@1/evaluate_headline@1"
}
},
{
"actions": {
"route": "tech-related"
},
"author": "root_agent",
"id": "e-5",
"invocationId": "i-1",
"nodeInfo": {
"path": "root_agent@1/route_headline@1"
}
}
]
}