reagentbuilder
Version:
An enterprise-grade AI agent framework based on LangChain and LangGraph, featuring dynamic tools, interceptors, breakpoints, and performance monitoring.
24 lines • 1.15 kB
TypeScript
import { BaseMessage } from "@langchain/core/messages";
import type { ToolCall } from "@langchain/core/messages/tool";
import type { AgentStateType } from "./agent.js";
import type { InterceptorOutput } from "./interceptor.js";
export interface BreakpointConfig {
enabled: boolean;
core?: {
beforeModelInvoke?: (messages: BaseMessage[], state: AgentStateType) => Promise<void>;
afterAgentComplete?: (finalState: AgentStateType) => Promise<void>;
};
global?: {
beforeToolCall?: (toolCall: ToolCall, state: AgentStateType) => Promise<void>;
afterToolCall?: (result: InterceptorOutput, toolCall: ToolCall, state: AgentStateType) => Promise<void>;
};
toolSpecific?: Map<string, {
beforeToolCall?: (toolCall: ToolCall, state: AgentStateType) => Promise<void>;
afterToolCall?: (result: InterceptorOutput, toolCall: ToolCall, state: AgentStateType) => Promise<void>;
}>;
model?: {
beforeCall?: (state: AgentStateType) => Promise<void>;
afterCall?: (response: BaseMessage, state: AgentStateType) => Promise<void>;
};
}
//# sourceMappingURL=breakpoint.d.ts.map