createLangGraphThreadDirectory

A framework-neutral ThreadDirectory over the LangGraph threads API. Mutations show at once and roll back on failure; a refresh never undoes a mutation that is still pending.

import { createLangGraphThreadDirectory } from '@threadplane/langgraph';

Declaration · overload 1

export declare function createLangGraphThreadDirectory(options: LangGraphThreadDirectoryOptions & {
    readonly projects: false;
}): LangGraphThreadDirectory<false>;

Parameters

options · required
LangGraphThreadDirectoryOptions & { readonly projects: false; }

Returns

LangGraphThreadDirectory<false>

Declaration · overload 2

export declare function createLangGraphThreadDirectory(options: LangGraphThreadDirectoryOptions & {
    readonly projects?: ProjectStore;
}): LangGraphThreadDirectory;

Parameters

options · required
LangGraphThreadDirectoryOptions & { readonly projects?: ProjectStore; }

Returns

LangGraphThreadDirectory

Declaration · overload 3

export declare function createLangGraphThreadDirectory(options: LangGraphThreadDirectoryOptions): LangGraphThreadDirectory<boolean>;

Parameters

Returns

LangGraphThreadDirectory<boolean>