langchain_community.utilities.stackexchange
.StackExchangeAPIWrapper¶
- class langchain_community.utilities.stackexchange.StackExchangeAPIWrapper[source]¶
Bases:
BaseModel
Wrapper for Stack Exchange API.
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 fetch_params: Dict[str, Any] [Optional]¶
Additional params to pass to StackApi.fetch.
- param max_results: int = 3¶
Max number of results to include in output.
- param query_type: Literal['all', 'title', 'body'] = 'all'¶
Which part of StackOverflows items to match against. One of ‘all’, ‘title’, ‘body’. Defaults to ‘all’.
- param result_separator: str = '\n\n'¶
Separator between question,answer pairs.