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 import FunctionCallingAgent
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 = FunctionCallingAgent.from_tools(
    linkup_tool.to_tool_list(),
    llm=OpenAI(model="gpt-4o"),
)

# Query for the agent
agent.chat("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.3.0.tar.gz (2.5 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.3.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_tools_linkup_research-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1bdb7ff30a6bdeb157dcf14809fc8586c2d5706ae23aaa877d0bc18aa1563650
MD5 909f4e9bae3d7dca08a3ec955db193c4
BLAKE2b-256 e4d1b9f02f4f087f37b6ff3639bf6dd0c165efbb31c4a2b2027798c0886121e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_tools_linkup_research-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a664dc5a532f932147a1d4eb8aa2e192c4e039858ab9da728dcb4d54e0f7974
MD5 743863ae34e4531322c37ae2ad98965c
BLAKE2b-256 97155ef5cba59a1b78a38d18000de4546bc25cc29b771e1a2d7bf90d6a59b845

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