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