langchain_community.utilities.google_finance
.GoogleFinanceAPIWrapper¶
- class langchain_community.utilities.google_finance.GoogleFinanceAPIWrapper[source]¶
Bases:
BaseModel
Wrapper for SerpApi’s Google Finance API
You can create SerpApi.com key by signing up at: https://serpapi.com/users/sign_up. The wrapper uses the SerpApi.com python package: https://serpapi.com/integrations/python To use, you should have the environment variable
SERPAPI_API_KEY
set with your API key, or pass serp_api_key as a named parameter to the constructor. .. rubric:: Examplefrom langchain_community.utilities import GoogleFinanceAPIWrapper google_Finance = GoogleFinanceAPIWrapper() google_Finance.run(‘langchain’)
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- param serp_api_key: Optional[SecretStr] = None¶
- Constraints
type = string
writeOnly = True
format = password
- param serp_search_engine: Any = None¶