import * as _langchain_langgraph0 from "@langchain/langgraph"; import { AnnotationRoot, Command, CompiledStateGraph } from "@langchain/langgraph"; import { z } from "zod"; import * as _langchain_core_messages0 from "@langchain/core/messages"; import * as _langchain_core_tools0 from "@langchain/core/tools"; //#region src/handoff.d.ts declare const METADATA_KEY_HANDOFF_DESTINATION = "__handoff_destination"; /** @inline */ interface CreateHandoffToolParams { /** * The name of the agent to handoff control to, i.e. the name of the agent node in the multi-agent graph. * * Agent names should be simple, clear and unique, preferably in snake_case, * although you are only limited to the names accepted by LangGraph * nodes as well as the tool names accepted by LLM providers * (the tool name will look like this: `transfer_to_`). */ agentName: string; /** Optional description for the handoff tool. */ description?: string; } /** * Create a tool that can handoff control to the requested agent. * * @param params Parameters for the handoff tool. */ declare const createHandoffTool: ({ agentName, description }: CreateHandoffToolParams) => _langchain_core_tools0.DynamicStructuredTool, Record, Record, Command, _langchain_core_messages0.MessageType>[]; activeAgent: string; }, string>, unknown, string>; declare const getHandoffDestinations: >(agent: CompiledStateGraph, toolNodeName?: string) => string[]; //#endregion export { METADATA_KEY_HANDOFF_DESTINATION, createHandoffTool, getHandoffDestinations }; //# sourceMappingURL=handoff.d.ts.map