import { DynamicStructuredTool } from "@langchain/core/tools"; import { type AppLLMServiceOptions, type VGAgentTool } from "@monorepo/src/app/Types/firebase"; /** * Migrate markdown references from an old LLM agent configuration to a new LLM agent configuration. * This function attempts to update all variable and tool references that appeared in the old text using * the old agent's configuration to the corresponding references in the new agent configuration. * * It looks for patterns `{{var:}}` for variables and `{{tool:}}` for tools and updates them * to the new config. If a variable or tool no longer exists in the new configuration, it will remove the reference. * * Assumptions: * - Variables are matched by their `key` property. If the old variable key also exists in the new config, it is preserved. * If it does not exist in the new config, the reference is removed. * - Tools are matched by their `id` property. If the old tool ID also exists in the new config, it is preserved. * If it does not exist in the new config, the reference is removed. */ export declare function migrateAgentMarkdownToNewAgent(input: { text: string; oldLlmConfig: AppLLMServiceOptions; newLlmConfig: AppLLMServiceOptions; }): string; export declare function VGAgentToolToLgTool(input: { tool: VGAgentTool; llmConfig: AppLLMServiceOptions; }): DynamicStructuredTool | null;