Library
Source code in superme_sdk/services/_library.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 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 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | |
get_learnings
get_learnings(
*,
limit: Optional[int] = None,
offset: int = 0,
collection: Optional[str] = None,
platform: Optional[str] = None,
title_keyword: Optional[str] = None,
privacy_filter: Optional[str] = None,
unread_only: bool = False,
date_from: Optional[str] = None,
date_to: Optional[str] = None,
) -> dict
List knowledge items in the authenticated user's library.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
limit
|
Optional[int]
|
Maximum items to return. Omit for backend default. |
None
|
offset
|
int
|
Pagination offset (default 0). |
0
|
collection
|
Optional[str]
|
Filter by type — |
None
|
platform
|
Optional[str]
|
Filter by source platform (e.g. |
None
|
title_keyword
|
Optional[str]
|
Substring search on item title. |
None
|
privacy_filter
|
Optional[str]
|
One of |
None
|
unread_only
|
bool
|
Return only unread items. |
False
|
date_from
|
Optional[str]
|
ISO-8601 lower bound on |
None
|
date_to
|
Optional[str]
|
ISO-8601 upper bound on |
None
|
Returns:
| Type | Description |
|---|---|
dict
|
Dict with |
Source code in superme_sdk/services/_library.py
get_learning
Fetch a single library item by ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
learning_id
|
str
|
The learning ID (from :meth: |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with full learning metadata and content. |
Source code in superme_sdk/services/_library.py
search_library
Search the authenticated user's own library by free-text query.
Hybrid (semantic + lexical) search across notes, links, and social posts. Includes drafts and private rows because the search is self-scoped.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
str
|
Free-text search query (required, non-empty). |
required |
platform
|
Optional[str]
|
Optional platform filter (e.g. |
None
|
limit
|
int
|
Max excerpts to return (1-50, default 20). |
20
|
Returns:
| Type | Description |
|---|---|
dict
|
Dict with |
dict
|
like |
dict
|
chunk_index, date, ...). |
Source code in superme_sdk/services/_library.py
get_ingestion_status
Check the ingestion status of the authenticated user's library.
Returns a summary of how many items are pending, processing, done,
or failed. Useful to poll after :meth:add_external_content to know
when URLs finish processing.
Returns:
| Type | Description |
|---|---|
dict
|
Dict with ingestion counts and status breakdown. |