Skip to main content

llama-index tools brave_search integration

Project description

LlamaIndex Tools Integration: Brave_Search

This tool enables agents to search and retrieve results from the Brave search engine.

You will need to set up an Brave account to get an search api key. Please check more here: https://brave.com/search/api

Usage

This tool has a more extensive example usage documented in a Jupyter notebook here

Here's an example usage of the BraveSearchToolSpec.

from llama_index.tools.brave_search import BraveSearchToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI

tool_spec = BraveSearchToolSpec(api_key="your-key")

agent = FunctionAgent(
    tools=tool_spec.to_tool_list(),
    llm=OpenAI(model="gpt-4.1"),
)

answer = await agent.run("what's the latest news about superconductors")
answer = await agent.run("what does lk-99 look like")
answer = await agent.run("is there any videos of it levitating")

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_brave_search-0.5.0.tar.gz (4.1 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_brave_search-0.5.0.tar.gz.

File metadata

  • Download URL: llama_index_tools_brave_search-0.5.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_tools_brave_search-0.5.0.tar.gz
Algorithm Hash digest
SHA256 01fdf3a411e6877bfa9d4c459bb90508c9f02e46d7af24f812480e48b1308c48
MD5 42eae0d333b66780cbf7c52a703178e8
BLAKE2b-256 44c0d20bee8c18281932ccfdf3fafe263cadc420ff10d287ffc818bfac047c15

See more details on using hashes here.

File details

Details for the file llama_index_tools_brave_search-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_tools_brave_search-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_tools_brave_search-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a7fd556b7ac94c4c306077f6c6906207437febc70d4f53fea190619b2a17bce8
MD5 fcab8c076afe3da0f612bac5934cec36
BLAKE2b-256 bc9edfa755b4102ee112e346422439439cf8c0dc33310be10b44b3398ed0a549

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