Skip to main content
Linkup provides an API to connect LLMs to the web and the Linkup Premium Partner sources.
This guide provides a quick overview for getting started with LinkupSearchTool tool.

Overview

Integration details

Setup

To use the Linkup provider, you need a valid API key, which you can find by signing up. To run the following examples you also need an OpenAI API key.

Installation

This tool lives in the langchain-linkup package:

Credentials

It’s also helpful (but not needed) to set up LangSmith for best-in-class observability:

Instantiation

Here we show how to instantiate an instance of the LinkupSearchTool, with

Invocation

Invoke directly with args

The tool simply accepts a query, which is a string.

Invoke with ToolCall

We can also invoke the tool with a model-generated ToolCall, in which case a ToolMessage will be returned:

Chaining

We can use our tool in a chain by first binding it to a tool-calling model and then calling it: