Reference
Remy Reference/agent/detectChanges
?

detectChanges

Detect changes between runs by comparing current input against previously stored state. Routes execution based on whether a change occurred.
mindstudio.detectChanges({ mode, input }) → Result

Compares the current input against state stored from a previous run and routes on whether anything changed — the primitive behind "act only when something new appears" in a scheduled job.

Parameters
mode
string
RequiredDetection mode: 'comparison' for strict string inequality, 'ai' for LLM-based. Default: 'comparison'
aicomparison
input
string
RequiredCurrent value to check (variable template)
prompt
string
AI mode: what constitutes a meaningful change
modelOverride
object
AI mode: model settings override
previousValueVariable
string
Optional variable name to store the previous value into for downstream access
changedStepId
string
Step to transition to if changed (same workflow)
changedWorkflowId
string
Workflow to jump to if changed (cross workflow)
unchangedStepId
string
Step to transition to if unchanged (same workflow)
unchangedWorkflowId
string
Workflow to jump to if unchanged (cross workflow)
Call from a method
import { mindstudio } from '@mindstudio-ai/agent';

const result = await mindstudio.detectChanges({
  mode: /* ... */,
  input: /* ... */
});