From 36d61e913a7fe1185b541318d28cf132a418c8a2 Mon Sep 17 00:00:00 2001 From: HamadaSalhab Date: Wed, 25 Sep 2024 21:46:11 +0300 Subject: [PATCH] Remove some checks --- .../integrations/utils/integrations/duckduckgo_search.py | 4 ---- .../integrations/utils/integrations/wikipedia.py | 2 -- 2 files changed, 6 deletions(-) diff --git a/integrations-service/integrations/utils/integrations/duckduckgo_search.py b/integrations-service/integrations/utils/integrations/duckduckgo_search.py index 44561c535..a8ea38f56 100644 --- a/integrations-service/integrations/utils/integrations/duckduckgo_search.py +++ b/integrations-service/integrations/utils/integrations/duckduckgo_search.py @@ -8,10 +8,6 @@ async def duckduckgo_search(arguments: DuckDuckGoSearchExecutionArguments) -> st Performs a web search using DuckDuckGo and returns the results. """ - assert isinstance( - arguments, DuckDuckGoSearchExecutionArguments - ), "Invalid arguments" - search = DuckDuckGoSearchRun() query = arguments.query if not query: diff --git a/integrations-service/integrations/utils/integrations/wikipedia.py b/integrations-service/integrations/utils/integrations/wikipedia.py index a47fdecb5..9e04d2871 100644 --- a/integrations-service/integrations/utils/integrations/wikipedia.py +++ b/integrations-service/integrations/utils/integrations/wikipedia.py @@ -8,8 +8,6 @@ async def wikipedia(arguments: WikipediaExecutionArguments) -> str: Searches Wikipedia for a given query and returns formatted results. """ - assert isinstance(arguments, WikipediaExecutionArguments), "Invalid arguments" - query = arguments.query if not query: raise ValueError("Query parameter is required for Wikipedia search")