UNPKG

reagentbuilder

Version:

An enterprise-grade AI agent framework based on LangChain and LangGraph, featuring dynamic tools, interceptors, breakpoints, and performance monitoring.

47 lines 1.66 kB
import { StructuredTool } from "@langchain/core/tools"; import { BaseChatModel } from "@langchain/core/language_models/chat_models"; import { BaseMessage } from "@langchain/core/messages"; import type { LLMConfig } from "./llm.js"; import type { InterceptorConfig } from "./interceptor.js"; import type { BreakpointConfig } from "./breakpoint.js"; export declare const AgentState: import("@langchain/langgraph").AnnotationRoot<{ messages: import("@langchain/langgraph").BinaryOperatorAggregate<BaseMessage[], BaseMessage[]>; reactIteration: import("@langchain/langgraph").BinaryOperatorAggregate<number, number>; reactMaxIterations: import("@langchain/langgraph").BinaryOperatorAggregate<number, number>; }>; export type AgentStateType = typeof AgentState.State; export interface ToolResult { content: string; toolCallId: string; success: boolean; error?: string; } export interface ProcessedToolCall { id?: string; name: string; args: Record<string, any>; metadata?: Record<string, any>; } export interface ReActConfig { enabled?: boolean; maxIterations?: number; thinkingPrompt?: string; } export interface AgentConfig { name: string; systemPrompt?: string; tools?: StructuredTool[]; llm: LLMConfig | BaseChatModel; interceptors?: InterceptorConfig; breakpoints?: BreakpointConfig; memory?: boolean; react?: ReActConfig; streaming?: boolean; } export type NodeName = "agent" | "tools"; export declare const NODES: { AGENT: "agent"; TOOLS: "tools"; }; export declare function isAgentState(obj: unknown): obj is AgentStateType; //# sourceMappingURL=agent.d.ts.map