Skip to main content

llama-index tools valyu integration

Project description

LlamaIndex Tools Integration: Valyu

This tool connects to Valyu and its Exchange Platform to easily enable your agent to search and get content from programmatically licensed proprietary content and the web using Valyu's deep search API.

To begin, you need to obtain an API key on the Valyu developer dashboard. You can also use the SDK without an API key by setting the VALYU_API_KEY environment variable.

Usage

Here's an example usage of the ValyuToolSpec.

# %pip install llama-index llama-index-core llama-index-tools-valyu

from llama_index.tools.valyu import ValyuToolSpec
from llama_index.agent.openai import OpenAIAgent
import os

valyu_tool = ValyuToolSpec(
    api_key=os.environ["VALYU_API_KEY"],
    max_price=100,  # default is 100
)
agent = OpenAIAgent.from_tools(valyu_tool.to_tool_list())

agent.chat(
    "What are the implications of using different volatility calculation methods (EWMA vs. GARCH) in Value at Risk (VaR) modeling for fixed income portfolios?"
)

search: Search and retrieve relevant content from proprietary and public sources using Valyu's deep search. Supports filtering by search type ("all", "proprietary", or "web"), relevance threshold, specific sources, date ranges, and categories.

This loader is designed to be used as a way to load data as a Tool in a 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_valyu-0.2.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

llama_index_tools_valyu-0.2.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_tools_valyu-0.2.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_tools_valyu-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cb4ef903874f1c3b1cec26a96b040aa247cd7ce30b66c868898e822701eeff62
MD5 d88aef44f749dd8128d10e78f6496f3e
BLAKE2b-256 d6a73d4823236f6d1d085ad57229c76fb8276d777daea093b437fa6302eda03c

See more details on using hashes here.

File details

Details for the file llama_index_tools_valyu-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_tools_valyu-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 315fb30ec0e2a270cf4746868b2c3101e658e43f17e1dab784e4c4c753be70c1
MD5 e994ad54097c25810049f58a5ff6100a
BLAKE2b-256 11caf7ab3de9316d79658aba5c7437d7b58168a18ec09553f13b5eed7071acba

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