This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pydantic import BaseModel, Field | |
from tenacity import retry, stop_after_attempt | |
class FakeGoogleSearch(BaseModel): | |
query: str = Field(..., description='The query of Google search') | |
class FakeGoogleSearchResponse(BaseModel): | |
result: str = Field(..., description='The search result') |