(parts: list[Part])
| 6346 | return to_json(json.loads(values[OUTPUT])[0]["parts"]), truncated |
| 6347 | |
| 6348 | def size(parts: list[Part]) -> int: |
| 6349 | return len(to_json([{"role": "assistant", "parts": parts}])) |
| 6350 | |
| 6351 | assert fit([image, call, reasoning, text], size([image, call, reasoning, text])) == ( |
| 6352 | to_json([image, call, reasoning, text]), |