mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-10-12 02:12:50 +00:00
docs: sync Core Integrations API reference (e2b) on Docusaurus (#13192)
Co-authored-by: anakin87 <[email protected]>
This commit is contained in:
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
@@ -44,6 +44,22 @@ Create a RunBashCommandTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance that will execute commands.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -98,15 +114,6 @@ agent = Agent(
|
||||
)
|
||||
```
|
||||
|
||||
Lifecycle is handled automatically by the Agent's pipeline. If you use the
|
||||
tools standalone, call :meth:`warm_up` before the first tool invocation:
|
||||
|
||||
```python
|
||||
sandbox.warm_up()
|
||||
# ... use tools ...
|
||||
sandbox.close()
|
||||
```
|
||||
|
||||
#### __init__
|
||||
|
||||
```python
|
||||
@@ -226,6 +233,22 @@ Create a ListDirectoryTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to list directories from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -274,6 +297,22 @@ Create a ReadFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to read files from.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
@@ -401,6 +440,22 @@ Create a WriteFileTool.
|
||||
|
||||
- **sandbox** (<code>E2BSandbox</code>) – The :class:`E2BSandbox` instance to write files to.
|
||||
|
||||
#### warm_up
|
||||
|
||||
```python
|
||||
warm_up() -> None
|
||||
```
|
||||
|
||||
Start the sandbox if needed.
|
||||
|
||||
#### close
|
||||
|
||||
```python
|
||||
close() -> None
|
||||
```
|
||||
|
||||
Close the sandbox.
|
||||
|
||||
#### to_dict
|
||||
|
||||
```python
|
||||
|
||||
Reference in New Issue
Block a user