import * as _langchain_core_tools from '@langchain/core/tools'; import { T as ToolCaller, G as GuardOptions } from '../_shared-CA1scTRq.cjs'; export { O as OnDeny, d as denialMessage, g as guardExecute } from '../_shared-CA1scTRq.cjs'; import '../types-C6RfE7pX.cjs'; /** The parts of a LangChain tool the adapter needs. Typed loosely so any * StructuredTool / DynamicStructuredTool satisfies it. */ interface StructuredToolLike { name: string; description: string; schema: unknown; invoke: (input: any, ...rest: any[]) => Promise; } /** * Wrap a LangChain tool so AxioRank scores its arguments before it runs. The * returned tool keeps the original name, description, and schema, so it is a * drop-in replacement anywhere the original is used (LangChain or LangGraph). */ declare function guardTool(t: StructuredToolLike, caller: ToolCaller, opts?: GuardOptions): _langchain_core_tools.DynamicTool; /** Wrap every tool in an array (LangChain agents take a tools array). */ declare function guardTools(tools: StructuredToolLike[], caller: ToolCaller, opts?: GuardOptions): _langchain_core_tools.DynamicTool[]; export { GuardOptions, ToolCaller, guardTool, guardTools };