ReferenceAsk
Remy Reference/agent/dataSources.sync
?

dataSources.sync

Pulls the corpus's connected origin in from code, as a budgeted ingestion job.
DataSource.sync(options?) DataSourceJob

Kicks off a sync of the corpus's connected origin from inside a method, returning the DataSourceJob it started. It is the code-side of remy-admin datasources sync: the same budgeted, resumable job, so a scheduled method can keep a corpus current. A corpus with no connector has nothing to sync.

Parameters
budgetDollars
number
Ceiling this run auto-approves under.
priority
boolean
Embed at the provider's priority tier for this run.
limit
number
Cap on objects processed this run.
Sync from a scheduled method
const job = await Docs.sync({ budgetDollars: 5 });
// poll job.state, or check Docs.job(job.id) later