Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Improve the result structure

Jakub Novak5bcb9ec6366d
diff --git a/apps/docs/src/app/code-interpreter/results/page.mdx b/apps/docs/src/app/code-interpreter/results/page.mdx
index ce4df376e..a52cd4056 100644
--- a/apps/docs/src/app/code-interpreter/results/page.mdx
+++ b/apps/docs/src/app/code-interpreter/results/page.mdx
@@ -1,10 +1,17 @@
# Results explained
-The object returned by the `execCell` method contains the following fields:
-
-- `result`: contains the result of the cell execution
- - if there's an variable on the last line, it will evaluated (there's an detailed explanation in the [Jupyter documentation](https://ipython.readthedocs.io/en/stable/development/execution.html#running-user-code)
-- `success`: a boolean indicating whether the cell execution was successful
-- `error`: the error message, if any
-- `onStdout`: the cell standard output, as a string
-- `onStderr`: the cell standard error, as a string
\ No newline at end of file
+The object returned by the `execCell` method is little bit more complex, it's based on Jupyter. (there's an detailed explanation in the [Jupyter documentation](https://jupyter-client.readthedocs.io/en/stable/messaging.html).
+
+It contains the following fields:
+
+- `data`: An array of the output of the cell and also displayed data (e.g. plots or images)
+- `logs`: Logs printed to stdout and stderr during execution.
+- `error`: An error message, if there was an error during execution of the cell. It works only for Python code, not for system (`!`) commands.
+
+## Data object
+
+## Logs object
+
+## Error object
+
+## Example how to interpret the results