diff --git a/docs/how-to-guides/how-to-create-and-use-your-own-tool-package.md b/docs/how-to-guides/how-to-create-and-use-your-own-tool-package.md index bd2d25f81ae..a6c714dbf0c 100644 --- a/docs/how-to-guides/how-to-create-and-use-your-own-tool-package.md +++ b/docs/how-to-guides/how-to-create-and-use-your-own-tool-package.md @@ -64,11 +64,11 @@ hello-world-proj/ > [!Note] If you create a new tool, don't forget to also create the corresponding tool YAML. You can run below command under your tool project to auto generate your tool YAML. You may want to specify `-n` for `name` and `-d` for `description`, which would be displayed as the tool name and tooltip in prompt flow UI. ``` - python ..\scripts\tool\generate_package_tool_meta.py -m -o -n -d + python -m -o -n -d ``` For example: ``` - python ..\scripts\tool\generate_package_tool_meta.py -m hello_world.tools.hello_world_tool -o hello_world\yamls\hello_world_tool.yaml -n "Hello World Tool" -d "This is my hello world tool." + python D:\proj\github\promptflow\scripts\tool\generate_package_tool_meta.py -m hello_world.tools.hello_world_tool -o hello_world\yamls\hello_world_tool.yaml -n "Hello World Tool" -d "This is my hello world tool." ``` To populate your tool module, adhere to the pattern \.tools.\, which represents the folder path to your tool within the package. 6. **tests**: This directory contains all your tests, though they are not required for creating your custom tool package. When adding a new tool, you can also create corresponding tests and place them in this directory. Run below command under your tool project: diff --git a/examples/tools/tool-package-quickstart/my_tool_package/yamls/output.yaml b/examples/tools/tool-package-quickstart/my_tool_package/yamls/output.yaml deleted file mode 100644 index ad625c8d669..00000000000 --- a/examples/tools/tool-package-quickstart/my_tool_package/yamls/output.yaml +++ /dev/null @@ -1,12 +0,0 @@ -my_tool_package.tools.my_tool_1.my_tool: - function: my_tool - inputs: - connection: - type: - - CustomConnection - input_text: - type: - - string - module: my_tool_package.tools.my_tool_1 - name: my_tool - type: python