test(core): improve testing for API request/response parsing (#21227)

This commit is contained in:
Sehoon Shon
2026-03-05 16:00:01 -05:00
committed by GitHub
parent 22d962e761
commit 1aa4a32066
3 changed files with 252 additions and 1 deletions
@@ -0,0 +1 @@
{"method":"generateContentStream","response":[{"candidates":[{"content":{"parts":[{"text":"Part 1. "}],"role":"model"},"index":0}]},{"usageMetadata":{"promptTokenCount":100,"candidatesTokenCount":10,"totalTokenCount":110}},{"candidates":[{"content":{"parts":[{"text":"Part 2."}],"role":"model"},"index":0}],"finishReason":"STOP"}]}