๐Ÿ‘€ Overview

Linkup can be used with Composio as a Tool to get contextual information from the internet.

๐Ÿ“ฆ Installation

  1. Open your Composio account

  2. Search for Linkup in the All App Section and click on it

โš™๏ธ ๏ธConfigure your connection

  1. Get a Linkup API Key:

Get your API key

Create a Linkup account for free to get your API key.

  1. Click on Setup Linkup integration

  1. Enter your Linkup API Key and click on Try connection defaultโ€™s linkup

๐Ÿ–Š๏ธ Example Usage with CrewAI

  1. Install CrewAI, langchain_openai and composio_crewai:
pip install crewai langchain_openai composio_crewai
  1. Get an Openai API Key: https://openai.com/index/openai-api/

  2. Create a new Python file and paste the following code:


from crewai import Agent, Task, Crew
from langchain_openai import ChatOpenAI
from composio_crewai import ComposioToolSet, Action, App
composio_toolset = ComposioToolSet(api_key="your composio api key")
tools = composio_toolset.get_tools(actions=['LINKUP_PERFORM_A_SEARCH_QUERY'])

# The crewai agent
crewai_agent = Agent(
    role="Sample Agent",
    goal="""You are an AI agent that is responsible for taking actions based on the tools you have""",
    backstory=(
        "You are AI agent that is responsible for taking actions based on the tools you have"
    ),
    verbose=True,
    tools=tools,
    llm=ChatOpenAI(),
)
task = Task(
    description="Can you tell me which women were awarded the Physics Nobel Prize",
    agent=crewai_agent,
    expected_output=""
)
my_crew = Crew(agents=[crewai_agent], tasks=[task])

result = my_crew.kickoff()
print(result)
  1. โœ… Run the Python file