import { ToolCallPart } from 'ai'; /** * Copyright 2025 © BeeAI a Series of LF Projects, LLC * SPDX-License-Identifier: Apache-2.0 */ interface ToolCallCheckerConfig { maxStrikeLength?: number; maxTotalOccurrences?: number; windowSize?: number; } /** * Detects cycles in tool calls */ declare class ToolCallChecker { protected config: Required; protected strikeHistory: ToolCallPart[]; protected occurrencesHistory: ToolCallPart[]; cycleFound: boolean; enabled: boolean; constructor(config?: ToolCallCheckerConfig); register(value: ToolCallPart): void; reset(current?: ToolCallPart): void; protected isSameToolCall(a: ToolCallPart, b: ToolCallPart): boolean; } export { ToolCallChecker, type ToolCallCheckerConfig };