Skip to main content
Source views are materialized queries over connected data sources. In smart mode the query is LLM-inferred from a guidance string; in query mode the query is built from a structured per-integration filter. Results sync in the background and can be refreshed on demand.

create()

Create a new source view. If filter is provided, the view is created in query mode. Otherwise, it uses smart mode with LLM inference from guidance.
Parameters Returns Promise<SourceView>

list()

List all source views in a workspace.
Parameters Returns Promise<SourceView[]>

retrieve()

Get a source view by its virtual filesystem path.
Parameters Returns Promise<SourceView>

update()

Update an existing source view’s name, guidance, or filter.
Updating the guidance or filter triggers a re-sync with the new query. Parameters Returns Promise<SourceView>

del()

Delete a source view.
Parameters Returns Promise<void>

sync()

Sync a source view — re-execute its query against the live source and refresh cached files.
Idempotent and safe to call repeatedly. Use this when you need fresh data before a read, or as part of a scheduled backend job. Parameters Returns Promise<SyncResult>

SourceView object

All view methods return (or accept) a SourceView with these fields: