e2b-code-interpreter 1.1.0__tar.gz → 1.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {e2b_code_interpreter-1.1.0 → e2b_code_interpreter-1.1.1}/PKG-INFO +1 -1
- {e2b_code_interpreter-1.1.0 → e2b_code_interpreter-1.1.1}/e2b_code_interpreter/models.py +8 -1
- {e2b_code_interpreter-1.1.0 → e2b_code_interpreter-1.1.1}/pyproject.toml +1 -1
- {e2b_code_interpreter-1.1.0 → e2b_code_interpreter-1.1.1}/README.md +0 -0
- {e2b_code_interpreter-1.1.0 → e2b_code_interpreter-1.1.1}/e2b_code_interpreter/__init__.py +0 -0
- {e2b_code_interpreter-1.1.0 → e2b_code_interpreter-1.1.1}/e2b_code_interpreter/charts.py +0 -0
- {e2b_code_interpreter-1.1.0 → e2b_code_interpreter-1.1.1}/e2b_code_interpreter/code_interpreter_async.py +0 -0
- {e2b_code_interpreter-1.1.0 → e2b_code_interpreter-1.1.1}/e2b_code_interpreter/code_interpreter_sync.py +0 -0
- {e2b_code_interpreter-1.1.0 → e2b_code_interpreter-1.1.1}/e2b_code_interpreter/constants.py +0 -0
- {e2b_code_interpreter-1.1.0 → e2b_code_interpreter-1.1.1}/e2b_code_interpreter/exceptions.py +0 -0
|
@@ -317,9 +317,16 @@ def serialize_results(results: List[Result]) -> List[Dict[str, str]]:
|
|
|
317
317
|
"""
|
|
318
318
|
serialized = []
|
|
319
319
|
for result in results:
|
|
320
|
-
serialized_dict = {
|
|
320
|
+
serialized_dict = {}
|
|
321
|
+
for key in result.formats():
|
|
322
|
+
if key == "chart":
|
|
323
|
+
serialized_dict[key] = result.chart.to_dict()
|
|
324
|
+
else:
|
|
325
|
+
serialized_dict[key] = result[key]
|
|
326
|
+
|
|
321
327
|
serialized_dict["text"] = result.text
|
|
322
328
|
serialized.append(serialized_dict)
|
|
329
|
+
|
|
323
330
|
return serialized
|
|
324
331
|
|
|
325
332
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{e2b_code_interpreter-1.1.0 → e2b_code_interpreter-1.1.1}/e2b_code_interpreter/exceptions.py
RENAMED
|
File without changes
|