Skip to content

armgit / E2B

Public Imported from GitHub
0

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

docstring for dataclass

0div86262f1bc621
diff --git a/packages/python-sdk/e2b/sandbox/filesystem/filesystem.py b/packages/python-sdk/e2b/sandbox/filesystem/filesystem.py
index a1dd55210..3eb575791 100644
--- a/packages/python-sdk/e2b/sandbox/filesystem/filesystem.py
+++ b/packages/python-sdk/e2b/sandbox/filesystem/filesystem.py
@@ -1,5 +1,5 @@
-from enum import Enum
from dataclasses import dataclass
+from enum import Enum
from typing import IO, Optional, Union
from e2b.envd.filesystem import filesystem_pb2
@@ -31,9 +31,15 @@ class EntryInfo:
type: Optional[FileType]
path: str
+
WriteData = Union[str, bytes, IO]
+
@dataclass
class WriteEntry:
+ """
+ Contains path and data of the file to be written to the filesystem.
+ """
+
path: str
data: WriteData