Protected
baseProtected
maxProtected
topProtected
buildBuilds a URL for the Wikipedia API using the provided parameters.
The parameters to be used in building the URL.
A string representing the built URL.
Fetches the content of a specific Wikipedia page. It returns the extracted content as a string.
The specific Wikipedia page to fetch its content.
A boolean value to indicate whether to redirect or not.
The extracted content of the specific Wikipedia page as a string.
Static
lc_
Wikipedia query tool integration.
Setup: Install
@langchain/community
. You'll also need an API key.Constructor args
Instantiate
Invocation
Invocation with tool call