Skip to content

Commit d465f4c

Browse files
Github Tool type fix
1 parent a64fa0a commit d465f4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/tools/github/tool.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
from typing import Any, Dict, List, Union
1+
from typing import Any
22

33
from backend.config.settings import Settings
44
from backend.crud import tool_auth as tool_auth_crud
55
from backend.schemas.tool import ToolCategory, ToolDefinition
66
from backend.services.logger.utils import LoggerFactory
7-
from backend.tools.base import BaseTool, ToolError
7+
from backend.tools.base import BaseTool
88
from backend.tools.github.auth import GithubAuth
99
from backend.tools.github.constants import GITHUB_TOOL_ID, SEARCH_LIMIT
1010
from backend.tools.github.utils import get_github_service
@@ -63,7 +63,7 @@ def _handle_tool_specific_errors(cls, error: Exception, **kwargs: Any) -> None:
6363
)
6464
raise Exception(message)
6565

66-
async def call(self, parameters: dict, ctx: Any, **kwargs: Any) -> Union[List[Dict[str, Any]], ToolError]:
66+
async def call(self, parameters: dict, ctx: Any, **kwargs: Any) -> list[dict[str, Any]]:
6767
user_id = kwargs.get("user_id", "")
6868
query = parameters.get("query", "")
6969

0 commit comments

Comments
 (0)