Skip to content

Commit

Permalink
updated params
Browse files Browse the repository at this point in the history
  • Loading branch information
william-price01 committed Sep 18, 2024
1 parent 0241a00 commit c994bdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions griptape/drivers/web_search/tavily_web_search_driver.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import json
from typing import TYPE_CHECKING
from typing import TYPE_CHECKING, Any

from attrs import Factory, define, field

Expand All @@ -20,7 +20,7 @@ class TavilyWebSearchDriver(BaseWebSearchDriver):
default=Factory(lambda self: import_optional_dependency("tavily").TavilyClient(self.api_key), takes_self=True),
kw_only=True,
)
params: dict = field(default=Factory(dict), kw_only=True, metadata={"serializable": True})
params: dict[str, Any] = field(factory=dict, kw_only=True, metadata={"serializable": True})

def search(self, query: str, **kwargs) -> ListArtifact:
response = self.client.search(query, max_results=self.results_count, **self.params, **kwargs)
Expand Down

0 comments on commit c994bdf

Please sign in to comment.