UNPKG

@convo-lang/convo-lang

Version:
23 lines (22 loc) 2.14 kB
import { Conversation, ConversationOptions } from "./Conversation"; import { ConvoGraphDb, ConvoGraphEntities, ConvoGraphEntityRef, ConvoGraphMonitorEvent, ConvoGraphSelection, ConvoMetadataAndTypeMap, ConvoNode, ConvoNodeExecCtx, ConvoTraverser, IHasConvoGraphDb } from "./convo-graph-types"; import { ConvoTokenUsage } from "./convo-types"; export declare const maxConvoGraphConcurrentStepExe = 5; export declare const convoTraverserStateStoreSuffix = "_suffix"; export declare const convoTraverserProxyVar = "_proxy"; export declare const defaultConvoGraphUserDataVarName = "userData"; export declare const applyConvoTraverserControlPath: (tv: ConvoTraverser) => void; export declare const getConvoTraverserForSaving: (tv: ConvoTraverser) => ConvoTraverser; export declare const getConvoTraverserStoreId: (tv: ConvoTraverser, ext?: string) => string; export declare const getConvoTraverserStoreIdById: (id: string, storeSuffix?: string, ext?: string) => string; export declare const getConvoNodeMetadataAsync: (convo: Conversation | null) => Promise<ConvoMetadataAndTypeMap>; export declare const createConvoNodeExecCtxAsync: (node: ConvoNode, convoOptions?: ConversationOptions) => Promise<ConvoNodeExecCtx>; export declare const resetConvoNodeExecCtxConvo: (ctx: ConvoNodeExecCtx) => void; export declare const createConvoNodeExecCtxConvo: (node: ConvoNode, defaultVars: Record<string, any>, convoOptions?: ConversationOptions, appendConvo?: string) => Conversation; export declare const hasConvoGraphDb: (obj: any) => obj is IHasConvoGraphDb; export declare const fixConvoGraphDb: (db: ConvoGraphDb) => boolean; export declare const createEmptyConvoGraphDb: () => ConvoGraphDb; export declare const roundConvoGraphLayoutProps: (db: Partial<ConvoGraphDb>) => void; export declare const createConvoGraphEntity: (entities: ConvoGraphEntities) => ConvoGraphEntityRef | undefined; export declare const compareConvoGraphSelections: (a: ConvoGraphSelection | null | undefined, b: ConvoGraphSelection | null | undefined) => boolean; export declare const getConvoGraphEventString: (e: ConvoGraphMonitorEvent, usage?: ConvoTokenUsage) => string;