This commit is contained in:
better629 2023-12-22 13:55:23 +08:00 committed by geekan
parent c97b54e0ea
commit 1df49b82e4

View file

@ -178,8 +178,8 @@ class WebBrowseAndSummarize(Action):
name: str = "WebBrowseAndSummarize"
context: Optional[str] = None
llm: BaseGPTAPI = Field(default_factory=LLM)
desc = "Explore the web and provide summaries of articles and webpages."
browse_func = Union[Callable[[list[str]], None], None] = None
desc: str = "Explore the web and provide summaries of articles and webpages."
browse_func: Union[Callable[[list[str]], None], None] = None
web_browser_engine: WebBrowserEngine = WebBrowserEngine(
engine=WebBrowserEngineType.CUSTOM if browse_func else None,
run_func=browse_func,