Skip to main content

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")

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.6.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.6.0.tar.gz.

File metadata

  • Download URL: llama_index_tools_brave_search-0.6.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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.6.0.tar.gz
Algorithm Hash digest
SHA256 72c3fee83ee4949e9ef239ca942799e0e70cd67182687f962fb0fe2bbe0338f1
MD5 59ab85db3b04f6cd997164de39cdeca6
BLAKE2b-256 c4dc1c7e193d58791d07abe7577f19685c7869b956abcb75d9209c5a565bbbec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_tools_brave_search-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a965c03443f2b02cdf23342d03b8e9a6aee0c1b0df94a938705f7c814acd49fe
MD5 d925b89e8a3a6dac3a5f9891865b7031
BLAKE2b-256 b76592d3d14981c62a07775d2e39ee174a467e36e8f2263838b59f1f4d6c58a5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page