UNPKG

@mastra/core

Version:
19 lines • 962 B
import type { SerializedStepFlowEntry, StepFlowEntry, StepFlowEntryOptions } from '../types.js'; /** * The optional identity/display fields (`id` / `description` / `metadata`) of a * control-flow entry, as a spreadable object. Both halves of the round-trip * rebuild entries from a whitelist (`serializeEntry` here, `applyGraphEntry` in * `./rehydrate`), so these must be picked explicitly or they'd be dropped. */ export declare function entryOptionFields(entry: { id?: string; description?: string; metadata?: Record<string, any>; }): StepFlowEntryOptions; /** * Walk a live `stepFlow` and emit a JSON-safe `SerializedStepFlowEntry[]` with * full (un-truncated) mapping configs and all step/agent/tool references stored * as ids. Throws on entries that can't round-trip (closures, closure predicates). */ export declare function toStorableGraph(stepFlow: StepFlowEntry[]): SerializedStepFlowEntry[]; //# sourceMappingURL=serialize.d.ts.map