Skip to main content

llama-index tools linkup_research integration

Project description

Linkup Research Tool

Linkup is a robust research API tailored specifically for LLM Agents. It seamlessly integrates with diverse data sources to ensure a superior, relevant research experience.

Quick Start:

pip install llama-index-tools-linkup-research
import os
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
from llama_index.tools.linkup_research.base import LinkupToolSpec


# structured_schema=json.dumps(your schema here) # Only if output type is structured
# Initialisation of the tool
linkup_tool = LinkupToolSpec(
    api_key="your Linkup API Key",
    depth="",  # Choose (standard) for a faster result (deep) for a slower but more complete result.
    output_type="",  # Choose (searchResults) for a list of results relative to your query, (sourcedAnswer) for an answer and a list of sources, or (structured) if you want a specific schema.
    # structured_output_schema=structured_schema # Only if output type is structured
)

# Creation of the agent
agent = FunctionAgent(
    tools=linkup_tool.to_tool_list(),
    llm=OpenAI(model="gpt-4o"),
)

# Query for the agent
await agent.run(
    "Can you tell me which women were awarded the Physics Nobel Prize"
)

This loader is designed to be used as a way to load data as a Tool in an Agent.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_tools_linkup_research-0.4.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_tools_linkup_research-0.4.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_tools_linkup_research-0.4.1.tar.gz
Algorithm Hash digest
SHA256 008add15cb0c5e042321ccfa0ae6ee08be717df6c1502e026c511c96f81341c6
MD5 fffbc497fa7ca44ad2307c1e743d9163
BLAKE2b-256 0e4ca34e70c88c75a70f7749daf6465b291655af850a3d69bd9e6027f52faeea

See more details on using hashes here.

File details

Details for the file llama_index_tools_linkup_research-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_tools_linkup_research-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7831739a70d00e4515d38a0a0a96e570297612d1caedf5c7b92da5dafd4fc2d0
MD5 c6a6262e29fdcfc50aabd003c27572e4
BLAKE2b-256 f40123de7350a43f2ac76c22645dc8a12d923b141eef326a085b6aa8514d1573

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page