hybrid_analysis
Analyze complex data using hybrid local+cloud processing with reasoning, technical, or creative approaches to extract insights.
Instructions
Hybrid local+cloud analysis for complex data
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Data to analyze | |
| approach | No | Analysis approach: reasoning, technical, creative | reasoning |
| model | No | Local model for analysis | architecture-reasoning:latest |
Implementation Reference
- local-ai-server.js:261-305 (handler)Core handler function for the 'hybrid_analysis' tool. Constructs approach-specific prompts (reasoning, technical, creative) with the input data and delegates execution to the local AI via queryLocalAI method.async hybridAnalysis(data, approach = 'reasoning', model = 'architecture-reasoning:latest') { const analysisPrompts = { reasoning: `Analyze this data using logical reasoning and chain of thought: Data: ${data} Provide: 1. Initial observations 2. Logical deductions 3. Pattern recognition 4. Reasoning chain 5. Conclusions Focus on logical analysis and reasoning patterns.`, technical: `Perform technical analysis of this data: Data: ${data} Provide: 1. Technical specifications or characteristics 2. Implementation considerations 3. Performance implications 4. Best practices 5. Technical recommendations Focus on technical depth and accuracy.`, creative: `Analyze this data from creative and innovative perspectives: Data: ${data} Provide: 1. Creative interpretations 2. Alternative approaches 3. Innovative applications 4. Cross-domain connections 5. Novel insights Focus on creativity and innovation.` }; const prompt = analysisPrompts[approach] || analysisPrompts.reasoning; return await this.queryLocalAI(prompt, model, 0.7); }
- local-ai-server.js:93-112 (schema)Input schema validation for hybrid_analysis tool, defining required 'data' parameter and optional 'approach' and 'model' with defaults.inputSchema: { type: 'object', properties: { data: { type: 'string', description: 'Data to analyze' }, approach: { type: 'string', description: 'Analysis approach: reasoning, technical, creative', default: 'reasoning' }, model: { type: 'string', description: 'Local model for analysis', default: 'architecture-reasoning:latest' } }, required: ['data'] }
- local-ai-server.js:90-113 (registration)Tool registration entry in ListToolsRequestSchema handler, specifying name, description, and input schema.{ name: 'hybrid_analysis', description: 'Hybrid local+cloud analysis for complex data', inputSchema: { type: 'object', properties: { data: { type: 'string', description: 'Data to analyze' }, approach: { type: 'string', description: 'Analysis approach: reasoning, technical, creative', default: 'reasoning' }, model: { type: 'string', description: 'Local model for analysis', default: 'architecture-reasoning:latest' } }, required: ['data'] } },
- local-ai-server.js:155-156 (registration)Dispatch/registration in CallToolRequestSchema switch statement, mapping tool call to hybridAnalysis handler.case 'hybrid_analysis': return await this.hybridAnalysis(args.data, args.approach, args.model);