Download api/core/tools/entities/tool_bundle.py from zhzabcd/dify-run: direct link, hf CLI and curl.
- Browser
- Download file 649 Bytes
-
https://huggingface.co/spaces/zhzabcd/dify-run/resolve/main/api/core/tools/entities/tool_bundle.py
- Command line
-
hf download hf://spaces/zhzabcd/dify-run/api/core/tools/entities/tool_bundle.py
-
curl -L -o tool_bundle.py https://huggingface.co/spaces/zhzabcd/dify-run/resolve/main/api/core/tools/entities/tool_bundle.py
649 Bytes
| from typing import Optional | |
| from pydantic import BaseModel | |
| from core.tools.entities.tool_entities import ToolParameter | |
| class ApiToolBundle(BaseModel): | |
| """ | |
| This class is used to store the schema information of an api based tool. | |
| such as the url, the method, the parameters, etc. | |
| """ | |
| # server_url | |
| server_url: str | |
| # method | |
| method: str | |
| # summary | |
| summary: Optional[str] = None | |
| # operation_id | |
| operation_id: str = None | |
| # parameters | |
| parameters: Optional[list[ToolParameter]] = None | |
| # author | |
| author: str | |
| # icon | |
| icon: Optional[str] = None | |
| # openapi operation | |
| openapi: dict | |