langchain_community.tools.reddit_search.tool.RedditSearchSchema¶
class langchain_community.tools.reddit_search.tool.RedditSearchSchema[source]¶
Bases: BaseModel
Input for Reddit search.
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 limit: str [Required]¶
a positive integer indicating the maximum number         of results to return
param query: str [Required]¶
should be query string that post title should         contain, or ‘*’ if anything is allowed.
param sort: str [Required]¶
should be sort method, which is one of: “relevance”         , “hot”, “top”, “new”, or “comments”.
param subreddit: str [Required]¶
should be name of subreddit, like “all” for         r/all
param time_filter: str [Required]¶
should be time period to filter by, which is         one of “all”, “day”, “hour”, “month”, “week”, or “year”
classmethod construct(_fields_set: Optional[SetStr] = None, **values: Any) → Model¶
Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data.
Default values are respected, but no other validation is performed.
Behaves as if Config.extra = ‘allow’ was set since it adds all passed values
copy(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, update: Optional[DictStrAny] = None, deep: bool = False) → Model¶
Duplicate a model, optionally choose which fields to include, exclude and change.
Parameters
include – fields to include in new model