create()
Create a smart folder.| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
workspaceId | string | Yes | — | Workspace external ID |
integration | string | Yes | — | Integration source (e.g., gmail, github) |
name | string | Yes | — | Display name |
guidance | string | No | — | Natural language query for the LLM |
outputFormat | 'folder' | 'file' | No | folder | folder = one file per result; file = single aggregated file |
fileExt | string | No | — | File extension for file output (e.g., .md) |
Promise<SmartFolder>
| Field | Type | Description |
|---|---|---|
external_id | string | Unique identifier |
integration | string | Integration source |
path | string | Virtual filesystem path |
name | string | Display name |
guidance | string | LLM guidance text |
output_format | string | Output format |
created_at | string | ISO 8601 timestamp |
list()
List all smart folders in a workspace.| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | Workspace external ID |
Promise<SmartFolder[]>
retrieve()
Get a smart folder by its virtual path.| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | Workspace external ID |
queryPath | string | Yes | Virtual filesystem path of the smart folder |
Promise<SmartFolder>
update()
Update a smart folder’s name or guidance.| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | Workspace external ID |
queryId | string | Yes | Smart folder external ID |
name | string | No | New display name |
guidance | string | No | New LLM guidance |
Promise<SmartFolder>
del()
Delete a smart folder.| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | Workspace external ID |
queryId | string | Yes | Smart folder external ID |
Promise<void>