To use the Linkup provider, you first need a valid API key, which you can find by signing-up here.
You will also need the langchain-linkup package, which you can install using pip:
from langchain_linkup import LinkupSearchRetrieverretriever = LinkupSearchRetriever( depth="deep", # "standard" or "deep" linkup_api_key=None, # API key can be passed here or set as the LINKUP_API_KEY environment variable)
from langchain_linkup import LinkupSearchTooltool = LinkupSearchTool( depth="deep", # "standard" or "deep" output_type="searchResults", # "searchResults", "sourcedAnswer" or "structured" linkup_api_key=None, # API key can be passed here or set as the LINKUP_API_KEY environment variable)
Assistant
Responses are generated using AI and may contain mistakes.