Skip to content

Commit

Permalink
Changed tags, added select for gl & hl params, improved label
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastjanPrachovskij committed May 29, 2024
1 parent c7cb957 commit b8b1b75
Show file tree
Hide file tree
Showing 6 changed files with 1,209 additions and 54 deletions.
6 changes: 0 additions & 6 deletions api/core/tools/provider/builtin/searchapi/searchapi.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import Any

from core.tools.entities.values import ToolLabelEnum
from core.tools.errors import ToolProviderCredentialValidationError
from core.tools.provider.builtin.searchapi.tools.google import GoogleTool
from core.tools.provider.builtin_tool_provider import BuiltinToolProviderController
Expand All @@ -22,8 +21,3 @@ def _validate_credentials(self, credentials: dict[str, Any]) -> None:
)
except Exception as e:
raise ToolProviderCredentialValidationError(str(e))

def _get_tool_labels(self) -> list[ToolLabelEnum]:
return [
ToolLabelEnum.SEARCH
]
5 changes: 5 additions & 0 deletions api/core/tools/provider/builtin/searchapi/searchapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ identity:
zh_Hans: SearchApi 是一个强大的实时 SERP API,可提供来自 Google 搜索、Google 招聘、YouTube、Google 新闻等搜索引擎集合的结构化数据。
pt_BR: SearchApi is a robust real-time SERP API delivering structured data from a collection of search engines including Google Search, Google Jobs, YouTube, Google News, and many more.
icon: icon.svg
tags:
- search
- business
- news
- productivity
credentials_for_provider:
searchapi_api_key:
type: secret-input
Expand Down
Loading

0 comments on commit b8b1b75

Please sign in to comment.