Skip to content

Commit

Permalink
Bye bye tool driver
Browse files Browse the repository at this point in the history
  • Loading branch information
collindutter committed Nov 21, 2024
1 parent ded439b commit 251807a
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 630 deletions.

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions docs/griptape-framework/drivers/src/tool_driver_1.py

This file was deleted.

4 changes: 0 additions & 4 deletions griptape/drivers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@
from .assistant.base_assistant_driver import BaseAssistantDriver
from .assistant.griptape_cloud_assistant_driver import GriptapeCloudAssistantDriver
from .assistant.openai_assistant_driver import OpenAiAssistantDriver
from .tool.base_tool_driver import BaseToolDriver
from .tool.griptape_cloud_tool_driver import GriptapeCloudToolDriver

__all__ = [
"BasePromptDriver",
Expand Down Expand Up @@ -242,6 +240,4 @@
"BaseAssistantDriver",
"GriptapeCloudAssistantDriver",
"OpenAiAssistantDriver",
"BaseToolDriver",
"GriptapeCloudToolDriver",
]
Empty file removed griptape/drivers/tool/__init__.py
Empty file.
23 changes: 0 additions & 23 deletions griptape/drivers/tool/base_tool_driver.py

This file was deleted.

136 changes: 0 additions & 136 deletions griptape/drivers/tool/griptape_cloud_tool_driver.py

This file was deleted.

2 changes: 0 additions & 2 deletions griptape/schemas/base_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ def _resolve_types(cls, attrs_cls: type) -> None:
BasePromptDriver,
BaseRulesetDriver,
BaseTextToSpeechDriver,
BaseToolDriver,
BaseVectorStoreDriver,
)
from griptape.events import EventListener
Expand All @@ -193,7 +192,6 @@ def _resolve_types(cls, attrs_cls: type) -> None:
"BaseConversationMemoryDriver": BaseConversationMemoryDriver,
"BaseRulesetDriver": BaseRulesetDriver,
"BaseImageGenerationDriver": BaseImageGenerationDriver,
"BaseToolDriver": BaseToolDriver,
"BaseArtifact": BaseArtifact,
"PromptStack": PromptStack,
"EventListener": EventListener,
Expand Down
5 changes: 0 additions & 5 deletions griptape/tools/base_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

if TYPE_CHECKING:
from griptape.common import ToolAction
from griptape.drivers import BaseToolDriver
from griptape.memory import TaskMemory
from griptape.tasks import ActionsSubtask

Expand Down Expand Up @@ -57,7 +56,6 @@ class BaseTool(ActivityMixin, SerializableMixin, RunnableMixin["BaseTool"], ABC)
dependencies_install_directory: Optional[str] = field(default=None, kw_only=True, metadata={"serializable": True})
verbose: bool = field(default=False, kw_only=True, metadata={"serializable": True})
off_prompt: bool = field(default=False, kw_only=True, metadata={"serializable": True})
tool_driver: BaseToolDriver = field(default=None, kw_only=True)

def __attrs_post_init__(self) -> None:
if (
Expand All @@ -67,9 +65,6 @@ def __attrs_post_init__(self) -> None:
):
self.install_dependencies(os.environ.copy())

if self.tool_driver is not None:
self.tool_driver.initialize_tool(self)

@output_memory.validator # pyright: ignore[reportAttributeAccessIssue]
def validate_output_memory(self, _: Attribute, output_memory: dict[str, Optional[list[TaskMemory]]]) -> None:
if output_memory:
Expand Down
1 change: 0 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ nav:
- Observability Drivers: "griptape-framework/drivers/observability-drivers.md"
- Ruleset Drivers: "griptape-framework/drivers/ruleset-drivers.md"
- File Manager Drivers: "griptape-framework/drivers/file-manager-drivers.md"
- Tool Drivers: "griptape-framework/drivers/tool-drivers.md"
- Data:
- Overview: "griptape-framework/data/index.md"
- Artifacts: "griptape-framework/data/artifacts.md"
Expand Down
Empty file.
Loading

0 comments on commit 251807a

Please sign in to comment.