swarmauri_toolkit_containertoolkit 0.7.5.dev1__tar.gz → 0.8.0.dev2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: swarmauri_toolkit_containertoolkit
3
- Version: 0.7.5.dev1
3
+ Version: 0.8.0.dev2
4
4
  Summary: Toolkit bundling container management tools.
5
5
  License: Apache-2.0
6
6
  Author: Jacob Stewart
@@ -50,7 +50,7 @@ pip install swarmauri_toolkit_containertoolkit
50
50
  ```python
51
51
  from swarmauri_toolkit_containertoolkit import ContainerToolkit
52
52
 
53
- toolkit = ContainerToolkit()
53
+ toolkit = ContainerToolkit(container_name="my-container", image="ubuntu:latest")
54
54
  print(toolkit.tools.keys())
55
55
  ```
56
56
 
@@ -30,6 +30,6 @@ pip install swarmauri_toolkit_containertoolkit
30
30
  ```python
31
31
  from swarmauri_toolkit_containertoolkit import ContainerToolkit
32
32
 
33
- toolkit = ContainerToolkit()
33
+ toolkit = ContainerToolkit(container_name="my-container", image="ubuntu:latest")
34
34
  print(toolkit.tools.keys())
35
35
  ```
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "swarmauri_toolkit_containertoolkit"
3
- version = "0.7.5.dev1"
3
+ version = "0.8.0.dev2"
4
4
  description = "Toolkit bundling container management tools."
5
5
  license = "Apache-2.0"
6
6
  readme = "README.md"
@@ -0,0 +1,30 @@
1
+ from typing import Dict
2
+ from swarmauri_base.tools.ToolBase import ToolBase
3
+ from swarmauri_base.toolkits.ToolkitBase import ToolkitBase
4
+ from swarmauri_base.ComponentBase import ComponentBase, SubclassUnion
5
+
6
+ from swarmauri_tool_containernewsession import ContainerNewSessionTool
7
+ from swarmauri_tool_containerfeedchars import ContainerFeedCharsTool
8
+ from swarmauri_tool_containermakepr import ContainerMakePrTool
9
+
10
+
11
+ @ComponentBase.register_type(ToolkitBase, "ContainerToolkit")
12
+ class ContainerToolkit(ToolkitBase):
13
+ tools: Dict[str, SubclassUnion[ToolBase]] = {}
14
+
15
+ def __init__(
16
+ self, container_name: str | None = None, image: str | None = None, **kwargs
17
+ ):
18
+ super().__init__(**kwargs)
19
+ self.tools = {
20
+ "ContainerNewSessionTool": ContainerNewSessionTool(
21
+ container_name=container_name,
22
+ image=image,
23
+ ),
24
+ "ContainerFeedCharsTool": ContainerFeedCharsTool(
25
+ container_name=container_name,
26
+ ),
27
+ "ContainerMakePrTool": ContainerMakePrTool(
28
+ container_name=container_name,
29
+ ),
30
+ }
@@ -1,17 +0,0 @@
1
- from typing import Dict
2
- from swarmauri_base.tools.ToolBase import ToolBase
3
- from swarmauri_base.toolkits.ToolkitBase import ToolkitBase
4
- from swarmauri_base.ComponentBase import ComponentBase, SubclassUnion
5
-
6
- from swarmauri_tool_containernewsession import ContainerNewSessionTool
7
- from swarmauri_tool_containerfeedchars import ContainerFeedCharsTool
8
- from swarmauri_tool_containermakepr import ContainerMakePrTool
9
-
10
-
11
- @ComponentBase.register_type(ToolkitBase, "ContainerToolkit")
12
- class ContainerToolkit(ToolkitBase):
13
- tools: Dict[str, SubclassUnion[ToolBase]] = {
14
- "ContainerNewSessionTool": ContainerNewSessionTool(),
15
- "ContainerFeedCharsTool": ContainerFeedCharsTool(),
16
- "ContainerMakePrTool": ContainerMakePrTool(),
17
- }