Content
Source code in superme_sdk/services/_content.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 | |
add_internal_content
add_internal_content(
input: list[str],
*,
extended_content: Optional[str] = None,
past_instructions: Optional[str] = None,
) -> dict
Save notes or knowledge to your personal library.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
list[str]
|
Text blocks to save. |
required |
extended_content
|
Optional[str]
|
Optional longer-form content. |
None
|
past_instructions
|
Optional[str]
|
Instructions for how the AI should use this content. |
None
|
Returns:
| Type | Description |
|---|---|
dict
|
Dict with success status and learning IDs. |
Source code in superme_sdk/services/_content.py
update_internal_content
update_internal_content(
learning_id: str,
*,
user_input: Optional[list[str]] = None,
extended_content: Optional[str] = None,
past_instructions: Optional[str] = None,
) -> dict
Update an existing note in your library.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
learning_id
|
str
|
The learning ID to update. |
required |
user_input
|
Optional[list[str]]
|
Replacement note content. |
None
|
extended_content
|
Optional[str]
|
Replacement long-form content. |
None
|
past_instructions
|
Optional[str]
|
Replacement AI usage instructions. |
None
|
Returns:
| Type | Description |
|---|---|
dict
|
Dict with update result. |
Source code in superme_sdk/services/_content.py
add_external_content
add_external_content(
urls: list[dict],
*,
reference: bool = True,
instant_recrawl: bool = True,
) -> dict
Submit URLs to be crawled and added to your knowledge base.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
urls
|
list[dict]
|
List of URL objects. Each must have a |
required |
reference
|
bool
|
Show citations from this content in AI answers. |
True
|
instant_recrawl
|
bool
|
Crawl immediately vs. queue. |
True
|
Returns:
| Type | Description |
|---|---|
dict
|
Dict with counts of successful, existing, and failed URLs. |
Source code in superme_sdk/services/_content.py
check_uncrawled_urls
Check which URLs are not yet in your knowledge base.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
urls
|
list[str]
|
URLs to check. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Dict with |