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