@threadplane/langgraphTypeAliasv0.3.7

LangGraphThreadDirectory

The directory createLangGraphThreadDirectory returns: the core ThreadDirectory with the commands it always has typed as present, so no call needs ?..

TProjects says whether the project commands exist: true (the default, and what the default options build) types them as present, false (built with projects: false) as absent, and boolean as optional.

import type { LangGraphThreadDirectory } from '@threadplane/langgraph';

Declaration

export type LangGraphThreadDirectory<TProjects extends boolean = true> = ThreadDirectory & Required<Pick<ThreadDirectory, LangGraphThreadCommand>> & ([TProjects] extends [true] ? Required<Pick<ThreadDirectory, LangGraphProjectCommand>> : [TProjects] extends [false] ? {
    readonly [K in LangGraphProjectCommand]?: undefined;
} : unknown);

Type parameters

TProjects
boolean Default: true