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. For detailed documentation of all LinkupSearchTool features and configurations head to the API reference.

Overview

Integration details

Setup

To use the Linkup provider, you need a valid API key, which you can find by signing-up here. To run the following examples you will 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 tool, 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:

API reference

For detailed documentation of all LinkupSearchTool features and configurations head to the API reference.