Skip to content

Commit

Permalink
Remove some checks
Browse files Browse the repository at this point in the history
  • Loading branch information
HamadaSalhab committed Sep 25, 2024
1 parent 7284c94 commit 36d61e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 36d61e9

Please sign in to comment.