UNPKG

behemoth-cli

Version:

🌍 BEHEMOTH CLIv3.760.4 - Level 50+ POST-SINGULARITY Intelligence Trading AI

100 lines 2.6 kB
/** * Dynamic Tool Orchestration System * Enables Claude-like multi-step reasoning and tool chaining */ interface OrchestrationStep { id: string; command: string; condition?: string; dependsOn?: string[]; timeout?: number; retries?: number; } interface OrchestrationResult { stepId: string; command: string; result: any; success: boolean; error?: string; executionTime: number; } interface OrchestrationPlan { id: string; description: string; steps: OrchestrationStep[]; estimatedTime: string; createdAt: Date; } interface OrchestrationContext { results: Map<string, OrchestrationResult>; variables: Map<string, any>; startTime: Date; currentStep?: string; } export declare class DynamicOrchestrator { private activePlans; private agent; constructor(agent?: any); /** * Create an orchestration plan from natural language input */ createPlan(input: string): Promise<OrchestrationPlan | null>; /** * Execute an orchestration plan with state management */ executePlan(plan: OrchestrationPlan, onStepComplete?: (result: OrchestrationResult) => void): Promise<OrchestrationResult[]>; /** * Create trading opportunity analysis plan */ private createTradingOpportunityPlan; /** * Create portfolio analysis plan */ private createPortfolioAnalysisPlan; /** * Create comprehensive market analysis plan */ private createComprehensiveAnalysisPlan; /** * Create comparison analysis plan */ private createComparisonPlan; /** * Create sentiment analysis plan */ private createSentimentAnalysisPlan; /** * Execute a single command within orchestration context */ private executeCommand; /** * Evaluate conditions for conditional execution */ private evaluateCondition; /** * Extract variables from step results for use in subsequent steps */ private extractVariables; /** * Helper method to extract symbol from natural language */ private extractSymbol; /** * Helper method to extract multiple symbols for comparison */ private extractMultipleSymbols; /** * Helper method to extract amount from input */ private extractAmount; /** * Get current plan status */ getPlanStatus(planId: string): OrchestrationContext | null; /** * Cancel a running plan */ cancelPlan(planId: string): boolean; } export {}; //# sourceMappingURL=orchestration.d.ts.map