You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DOCS/DOCUMENTATION.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -343,10 +343,10 @@ The `temperature`, `top_p`, `top_k`, and `n` parameters control the randomness a
343
343
344
344
345
345
346
-
## `CodeInterpreterTool`:
346
+
## `CodeInterpreter`:
347
347
348
348
```python
349
-
tool =CodeInterpreterTool("Code Interpreter", "A tool to interpret code and generate useful outputs.")
349
+
tool =CodeInterpreter("Code Interpreter", "A tool to interpret code and generate useful outputs.")
350
350
tool.run("Plot the bitcoin chart of 2023 YTD")
351
351
352
352
# Or with file inputs
@@ -358,11 +358,11 @@ To use the asynchronous version, simply replace `run` with `arun` and ensure you
358
358
```python
359
359
import asyncio
360
360
361
-
tool =CodeInterpreterTool("Code Interpreter", "A tool to interpret code and generate useful outputs.")
361
+
tool =CodeInterpreter("Code Interpreter", "A tool to interpret code and generate useful outputs.")
362
362
asyncio.run(tool.arun("Plot the bitcoin chart of 2023 YTD"))
363
363
364
364
# Or with file inputs
365
365
asyncio.run(tool.arun("Analyze this dataset and plot something interesting about it.", ["examples/assets/iris.csv"]))
366
366
```
367
367
368
-
The `CodeInterpreterTool` class is a flexible tool that uses the `CodeInterpreterSession` from the `codeinterpreterapi` package to run the code interpretation and return the result. It provides both synchronous and asynchronous methods for convenience, and ensures that exceptions are handled gracefully.
368
+
The `CodeInterpreter` class is a flexible tool that uses the `CodeInterpreterSession` from the `codeinterpreterapi` package to run the code interpretation and return the result. It provides both synchronous and asynchronous methods for convenience, and ensures that exceptions are handled gracefully.
0 commit comments