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.agent import OpenAIAgent

tool_spec = NotionToolSpec()

agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())

agent.chat("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. See here for examples.

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.1.3.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

llama_index_tools_notion-0.1.3-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page