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.4.1.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.4.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_tools_notion-0.4.1.tar.gz
Algorithm Hash digest
SHA256 39da6151e1057fef39360f9f6e831b2579e72e559b929af730d5a223f502e4d6
MD5 fbd4b390b4d4987badd6bb60c2ffd5c4
BLAKE2b-256 2d9a9ec7907b7a5256d003d0e83a8f5e0f745a9a6ef6a88c2bafa1993fcccd4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_tools_notion-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e7c1fbef26c405a229ce9e32a378b2c90b3d4115f551039a28f76a04f497447a
MD5 3e8cbf8d15c6bb5b7b083dcd0450fb10
BLAKE2b-256 adf86cfcea6af17e1fd170cad7a40cd77a02d57354db6ddd23ff9538987426be

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