@langgraph-js/pro
Version:
The Pro SDK for LangGraph - seamlessly integrate your AI agents with frontend interfaces and build complex AI workflows
12 lines (11 loc) • 903 B
TypeScript
import { z } from "zod";
import { AnnotationRoot, Command, CompiledStateGraph } from "@langchain/langgraph";
declare const METADATA_KEY_HANDOFF_DESTINATION = "__handoff_destination";
interface CreateHandoffToolParams {
agentName: string;
description?: string;
updateState?: (state: any) => Record<string, any>;
}
declare const createHandoffTool: ({ agentName, description, updateState }: CreateHandoffToolParams) => import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, {}, {}, Command<unknown>>;
declare const getHandoffDestinations: <AnnotationRootT extends AnnotationRoot<any>>(agent: CompiledStateGraph<AnnotationRootT["State"], AnnotationRootT["Update"], string, AnnotationRootT["spec"], AnnotationRootT["spec"]>, toolNodeName?: string) => string[];
export { createHandoffTool, getHandoffDestinations, METADATA_KEY_HANDOFF_DESTINATION };