Notion
Notion 工具规范。
NotionToolSpec #
基类: BaseToolSpec
Notion 工具规范。
目前是数据加载器的一个简单封装。TODO:在 Notion 规范中添加更多方法。
源代码位于 llama-index-integrations/tools/llama-index-tools-notion/llama_index/tools/notion/base.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
|
get_fn_schema_from_fn_name #
get_fn_schema_from_fn_name(fn_name: str, spec_functions: Optional[List[SPEC_FUNCTION_TYPE]] = None) -> Optional[Type[BaseModel]]
从函数名返回映射。
源代码位于 llama-index-integrations/tools/llama-index-tools-notion/llama_index/tools/notion/base.py
46 47 48 49 50 51 52 53 54 55 |
|
load_data #
load_data(page_ids: Optional[List[str]] = None, database_ids: Optional[List[str]] = None) -> str
从一组页面 ID 或数据库 ID 加载内容。
如果您不知道页面 ID 或数据库 ID,请不要使用此端点。
源代码位于 llama-index-integrations/tools/llama-index-tools-notion/llama_index/tools/notion/base.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
|
search_data #
search_data(query: str, direction: Optional[str] = None, timestamp: Optional[str] = None, value: Optional[str] = None, property: Optional[str] = None, page_size: int = 100) -> List[Dict[str, Any]]
搜索相关页面列表。
包含每个页面的元数据(但不包含页面内容)。参数:query:要搜索的页面或数据库标题,支持模糊匹配。
源代码位于 llama-index-integrations/tools/llama-index-tools-notion/llama_index/tools/notion/base.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
|