@langgraph-js/pro
Version:
The Pro SDK for LangGraph - seamlessly integrate your AI agents with frontend interfaces and build complex AI workflows
21 lines (20 loc) • 744 B
TypeScript
import { DynamicStructuredTool } from "@langchain/core/tools";
export declare const FEToolsState: import("@langchain/langgraph").AnnotationRoot<{
fe_tools: import("@langchain/langgraph").BinaryOperatorAggregate<FETool[], FETool[]>;
}>;
export interface FEToolParameters {
name: string;
type: string;
description: string;
required: boolean;
}
export interface FETool {
name: string;
description: string;
parameters: FEToolParameters[];
allowAgent?: string[];
}
export declare const createFeTools: (tools: FETool[],
/** 通过归属的 agent 的名称,来过滤出指定的工具 */
agentName?: string) => DynamicStructuredTool[];
export declare const actionToTool: (tool: FETool) => DynamicStructuredTool;