Metadata-Version: 2.1
Name: llama-index-tools-notion
Version: 0.0.1
Summary: llama-index tools notion integration
License: MIT
Author: Your Name
Author-email: you@example.com
Requires-Python: >=3.8.1,<3.12
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: llama-index-core (>=0.9.32,<0.10.0)
Requires-Dist: llama-index-readers-notion (>=0.1.0,<0.2.0)
Description-Content-Type: text/markdown

# 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](https://github.com/emptycrown/llama-hub/tree/main/llama_hub/tools/notebooks/notion.ipynb)

Here's an example usage of the NotionToolSpec.

```python
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 databse

This loader is designed to be used as a way to load data as a Tool in a Agent. See [here](https://github.com/emptycrown/llama-hub/tree/main) for examples.

