diff --git a/README.md b/README.md index eb37713..0de4418 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,13 @@ A Github template repository for creating Griptape tools. ## Usage -This template repository defines the typical structure for a Griptape tool and is meant to be used as a starting point when developing new tools. To use this template, click the "Use this template" button at the top of the repository. +This template repository defines the typical structure for a Griptape tool and is meant to be used as a starting point when developing new tools. To create a tool using this template, click the **"Use this template"** button at the top of the repository. ### Steps for creating a new Griptape tool: 1. Add your tool's logic to `tool.py` -2. Add tests in the `tests` directory -3. Add examples in the `examples` directory +2. Add tests in the `tests/` directory +3. Add examples in the `examples/` directory 4. Update the contents of `manifest.yml` with the name and description of your tool along with your contact information 5. Rewrite this `README.md` with information about your new tool 6. Choose the appropriate license (and update the `LICENSE` file if necessary) diff --git a/reverse_string_tool/tool.py b/reverse_string_tool/tool.py index 8faa196..0b5f562 100644 --- a/reverse_string_tool/tool.py +++ b/reverse_string_tool/tool.py @@ -11,13 +11,7 @@ class ReverseStringTool(BaseTool): @activity( config={ "description": "Can be used to reverse a string", - "schema": Schema( - { - Literal( - "input", description="The string to be reversed" - ): str - } - ), + "schema": Schema({Literal("input", description="The string to be reversed"): str}), } ) def reverse_string(self, params: dict) -> TextArtifact | ErrorArtifact: diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_reverse_string_tool.py b/tests/test_reverse_string_tool.py index b5b6621..21264ac 100644 --- a/tests/test_reverse_string_tool.py +++ b/tests/test_reverse_string_tool.py @@ -2,7 +2,7 @@ from reverse_string_tool import ReverseStringTool -class TestReverseString: +class TestReverseStringTool: def test_reverse_string(self): value = "some_value"