/** * Workflow discovery - uses LLM to identify likely tool workflows. */ import type { MCPTool } from '../transport/types.js'; import type { LLMClient } from '../llm/client.js'; import type { Workflow, WorkflowDiscoveryOptions } from './types.js'; /** * Discovers likely workflows from a set of tools. */ export declare class WorkflowDiscoverer { private llm; private options; constructor(llm: LLMClient, options?: WorkflowDiscoveryOptions); /** * Discover workflows from available tools. */ discover(tools: MCPTool[]): Promise; /** * Extract parameter information from a tool schema. */ private extractParams; /** * Normalize and validate discovered workflows. */ private normalizeWorkflows; /** * Normalize a workflow step. */ private normalizeStep; /** * Generate a URL-safe ID from a name. */ private generateId; /** * Fallback discovery when LLM fails. * Tries to identify tools that might work together based on naming patterns. */ private fallbackDiscovery; } //# sourceMappingURL=discovery.d.ts.map