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.openai 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.

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

Uploaded Source

Built Distribution

llama_index_tools_notion-0.3.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llama_index_tools_notion-0.3.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0

File hashes

Hashes for llama_index_tools_notion-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9bd9dfba0bace2a4bdef12956af53c89df073cc2d071fa593b7efcabb3efedb2
MD5 b26df6505bb4fdf01e2b126a383de01a
BLAKE2b-256 483c15e2885d5be06d12bca54c8dce9b72732bb1fd79bc303c48875a9c6e7f50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_tools_notion-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e8e6cef8be152990674092b56513e47689eef8d6a12bf59b5e0d6900488501ea
MD5 fbc13a3704665f32ff9cd7de23097890
BLAKE2b-256 d6a20dc2365dff9caa62d2bb009e58e974fd7a878b4342534b55b711c630c738

See more details on using hashes here.

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