Skip to main content

llama-index tools notion integration

Project description

Notion Tool

This tool loads and updates documents from Notion. The user specifies an API token to initialize the NotionToolSpec.

Usage

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

Here's an example usage of the NotionToolSpec.

from llama_index.tools.notion import NotionToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI

tool_spec = NotionToolSpec()

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

print(await agent.run("Append the heading 'I am legend' to the movies page"))

load_data: Loads a list of page or databases by id search_data: Searches for matching pages or databases append_data: Appends content to the matching page or database

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_notion-0.5.0.tar.gz (4.4 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_notion-0.5.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_tools_notion-0.5.0.tar.gz.

File metadata

  • Download URL: llama_index_tools_notion-0.5.0.tar.gz
  • Upload date:
  • Size: 4.4 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_notion-0.5.0.tar.gz
Algorithm Hash digest
SHA256 356fd219e6daeb896635e331f74c6e9e6a77171305e09873dd03e42f10c34f84
MD5 18e60f8dab998c6c7cefb291133cdaa0
BLAKE2b-256 e32f1d70446bb767d8ad87f5a3316d453a703c2118f40a28b50c843d93c183c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_tools_notion-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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_notion-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 640b6916d2a92647cba233aca8d924c109309d4844c1465cc03f10db87a8f602
MD5 30c557acb1180d68617d6004c950b737
BLAKE2b-256 fd136c688da58b8c632c50fe5df31cb877ba92accdbf855524b7d2ecb765571f

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