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.
- you need to obtain an API key on the Linkup dashboard
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_tools_linkup_research-0.4.0.tar.gz.
File metadata
- Download URL: llama_index_tools_linkup_research-0.4.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5b8aebc13825313c327d6dd1da3e843ed7019291aefa06c2acaae0db014b668
|
|
| MD5 |
21cc6031253e43e6717c187e470741a8
|
|
| BLAKE2b-256 |
8a7e0a47263f7c58dca949c42c94cb41e88aaa95a5c9a82af4819579ecca56fb
|
File details
Details for the file llama_index_tools_linkup_research-0.4.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_tools_linkup_research-0.4.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf6c9569f82b2de3c841df3262d8c3cc1001f8b6022158265fab7896d9bdb094
|
|
| MD5 |
ad683ba109c98304cd2db17f39206650
|
|
| BLAKE2b-256 |
4b2ebe293582f930bfdd39e08d525872dd49c6581902a75c3af354830aebe0b8
|