@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
13 lines (12 loc) • 528 B
TypeScript
import type { PipelineJson } from '../../pipeline/PipelineJson/PipelineJson';
/**
* Creates a deep clone of a PipelineJson object, copying all properties explicitly.
*
* Note: It is useful for ensuring that modifications to the returned pipeline do not affect the original.
*
* @param pipeline The pipeline to clone.
* @returns A new PipelineJson object with the same properties as the input.
*
* @public exported from `@promptbook/utils`
*/
export declare function clonePipeline(pipeline: PipelineJson): PipelineJson;