adaptive-memory-multi-model-router 1.2.2 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +146 -66
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/integrations/airtable.js +20 -0
- package/dist/integrations/discord.js +18 -0
- package/dist/integrations/github.js +23 -0
- package/dist/integrations/gmail.js +19 -0
- package/dist/integrations/google-calendar.js +18 -0
- package/dist/integrations/index.js +61 -0
- package/dist/integrations/jira.js +21 -0
- package/dist/integrations/linear.js +19 -0
- package/dist/integrations/notion.js +19 -0
- package/dist/integrations/slack.js +18 -0
- package/dist/integrations/telegram.js +19 -0
- package/dist/providers/registry.js +7 -3
- package/docs/ARCHITECTURAL-IMPROVEMENTS-2025.md +1391 -0
- package/docs/ARCHITECTURAL-IMPROVEMENTS-REVISED-2025.md +1051 -0
- package/docs/CONFIGURATION.md +476 -0
- package/docs/COUNCIL_DECISION.json +308 -0
- package/docs/COUNCIL_SUMMARY.md +265 -0
- package/docs/COUNCIL_V2.2_DECISION.md +416 -0
- package/docs/IMPROVEMENT_ROADMAP.md +515 -0
- package/docs/LLM_COUNCIL_DECISION.md +508 -0
- package/docs/QUICK_START_VISIBILITY.md +782 -0
- package/docs/REDDIT_GAP_ANALYSIS.md +299 -0
- package/docs/RESEARCH_BACKED_IMPROVEMENTS.md +1180 -0
- package/docs/TMLPD_QNA.md +751 -0
- package/docs/TMLPD_V2.1_COMPLETE.md +763 -0
- package/docs/TMLPD_V2.2_RESEARCH_ROADMAP.md +754 -0
- package/docs/V2.2_IMPLEMENTATION_COMPLETE.md +446 -0
- package/docs/V2_IMPLEMENTATION_GUIDE.md +388 -0
- package/docs/VISIBILITY_ADOPTION_PLAN.md +1005 -0
- package/docs/launch-content/LAUNCH_EXECUTION_CHECKLIST.md +421 -0
- package/docs/launch-content/README.md +457 -0
- package/docs/launch-content/assets/cost_comparison_100_tasks.png +0 -0
- package/docs/launch-content/assets/cumulative_savings.png +0 -0
- package/docs/launch-content/assets/parallel_speedup.png +0 -0
- package/docs/launch-content/assets/provider_pricing_comparison.png +0 -0
- package/docs/launch-content/assets/task_breakdown_comparison.png +0 -0
- package/docs/launch-content/generate_charts.py +313 -0
- package/docs/launch-content/hn_show_post.md +139 -0
- package/docs/launch-content/partner_outreach_templates.md +745 -0
- package/docs/launch-content/reddit_posts.md +467 -0
- package/docs/launch-content/twitter_thread.txt +460 -0
- package/examples/QUICKSTART.md +1 -1
- package/openclaw-alexa-bridge/ALL_REMAINING_FIXES_PLAN.md +313 -0
- package/openclaw-alexa-bridge/REMAINING_FIXES_SUMMARY.md +277 -0
- package/openclaw-alexa-bridge/src/alexa_handler_no_tmlpd.js +1234 -0
- package/openclaw-alexa-bridge/test_fixes.js +77 -0
- package/package.json +120 -29
- package/package.json.tmp +0 -0
- package/qna/TMLPD_QNA.md +3 -3
- package/skill/SKILL.md +2 -2
- package/src/__tests__/integration/tmpld_integration.test.py +540 -0
- package/src/agents/skill_enhanced_agent.py +318 -0
- package/src/memory/__init__.py +15 -0
- package/src/memory/agentic_memory.py +353 -0
- package/src/memory/semantic_memory.py +444 -0
- package/src/memory/simple_memory.py +466 -0
- package/src/memory/working_memory.py +447 -0
- package/src/orchestration/__init__.py +52 -0
- package/src/orchestration/execution_engine.py +353 -0
- package/src/orchestration/halo_orchestrator.py +367 -0
- package/src/orchestration/mcts_workflow.py +498 -0
- package/src/orchestration/role_assigner.py +473 -0
- package/src/orchestration/task_planner.py +522 -0
- package/src/providers/__init__.py +67 -0
- package/src/providers/anthropic.py +304 -0
- package/src/providers/base.py +241 -0
- package/src/providers/cerebras.py +373 -0
- package/src/providers/registry.py +476 -0
- package/src/routing/__init__.py +30 -0
- package/src/routing/universal_router.py +621 -0
- package/src/skills/TMLPD-QUICKREF.md +210 -0
- package/src/skills/TMLPD-SETUP-SUMMARY.md +157 -0
- package/src/skills/TMLPD.md +540 -0
- package/src/skills/__tests__/skill_manager.test.ts +328 -0
- package/src/skills/skill_manager.py +385 -0
- package/src/skills/test-tmlpd.sh +108 -0
- package/src/skills/tmlpd-category.yaml +67 -0
- package/src/skills/tmlpd-monitoring.yaml +188 -0
- package/src/skills/tmlpd-phase.yaml +132 -0
- package/src/state/__init__.py +17 -0
- package/src/state/simple_checkpoint.py +508 -0
- package/src/tmlpd_agent.py +464 -0
- package/src/tmpld_v2.py +427 -0
- package/src/workflows/__init__.py +18 -0
- package/src/workflows/advanced_difficulty_classifier.py +377 -0
- package/src/workflows/chaining_executor.py +417 -0
- package/src/workflows/difficulty_integration.py +209 -0
- package/src/workflows/orchestrator.py +469 -0
- package/src/workflows/orchestrator_executor.py +456 -0
- package/src/workflows/parallelization_executor.py +382 -0
- package/src/workflows/router.py +311 -0
- package/test_integration_simple.py +86 -0
- package/test_mcts_workflow.py +150 -0
- package/test_templd_integration.py +262 -0
- package/test_universal_router.py +275 -0
- package/tmlpd-pi-extension/README.md +36 -0
- package/tmlpd-pi-extension/dist/cache/prefixCache.d.ts +114 -0
- package/tmlpd-pi-extension/dist/cache/prefixCache.d.ts.map +1 -0
- package/tmlpd-pi-extension/dist/cache/prefixCache.js +285 -0
- package/tmlpd-pi-extension/dist/cache/prefixCache.js.map +1 -0
- package/tmlpd-pi-extension/dist/cache/responseCache.d.ts +58 -0
- package/tmlpd-pi-extension/dist/cache/responseCache.d.ts.map +1 -0
- package/tmlpd-pi-extension/dist/cache/responseCache.js +153 -0
- package/tmlpd-pi-extension/dist/cache/responseCache.js.map +1 -0
- package/tmlpd-pi-extension/dist/cli.js +59 -0
- package/tmlpd-pi-extension/dist/cost/costTracker.d.ts +95 -0
- package/tmlpd-pi-extension/dist/cost/costTracker.d.ts.map +1 -0
- package/tmlpd-pi-extension/dist/cost/costTracker.js +240 -0
- package/tmlpd-pi-extension/dist/cost/costTracker.js.map +1 -0
- package/tmlpd-pi-extension/dist/index.d.ts +723 -0
- package/tmlpd-pi-extension/dist/index.d.ts.map +1 -0
- package/tmlpd-pi-extension/dist/index.js +239 -0
- package/tmlpd-pi-extension/dist/index.js.map +1 -0
- package/tmlpd-pi-extension/dist/memory/episodicMemory.d.ts +82 -0
- package/tmlpd-pi-extension/dist/memory/episodicMemory.d.ts.map +1 -0
- package/tmlpd-pi-extension/dist/memory/episodicMemory.js +145 -0
- package/tmlpd-pi-extension/dist/memory/episodicMemory.js.map +1 -0
- package/tmlpd-pi-extension/dist/orchestration/haloOrchestrator.d.ts +102 -0
- package/tmlpd-pi-extension/dist/orchestration/haloOrchestrator.d.ts.map +1 -0
- package/tmlpd-pi-extension/dist/orchestration/haloOrchestrator.js +207 -0
- package/tmlpd-pi-extension/dist/orchestration/haloOrchestrator.js.map +1 -0
- package/tmlpd-pi-extension/dist/orchestration/mctsWorkflow.d.ts +85 -0
- package/tmlpd-pi-extension/dist/orchestration/mctsWorkflow.d.ts.map +1 -0
- package/tmlpd-pi-extension/dist/orchestration/mctsWorkflow.js +210 -0
- package/tmlpd-pi-extension/dist/orchestration/mctsWorkflow.js.map +1 -0
- package/tmlpd-pi-extension/dist/providers/localProvider.d.ts +102 -0
- package/tmlpd-pi-extension/dist/providers/localProvider.d.ts.map +1 -0
- package/tmlpd-pi-extension/dist/providers/localProvider.js +338 -0
- package/tmlpd-pi-extension/dist/providers/localProvider.js.map +1 -0
- package/tmlpd-pi-extension/dist/providers/registry.d.ts +55 -0
- package/tmlpd-pi-extension/dist/providers/registry.d.ts.map +1 -0
- package/tmlpd-pi-extension/dist/providers/registry.js +138 -0
- package/tmlpd-pi-extension/dist/providers/registry.js.map +1 -0
- package/tmlpd-pi-extension/dist/routing/advancedRouter.d.ts +68 -0
- package/tmlpd-pi-extension/dist/routing/advancedRouter.d.ts.map +1 -0
- package/tmlpd-pi-extension/dist/routing/advancedRouter.js +332 -0
- package/tmlpd-pi-extension/dist/routing/advancedRouter.js.map +1 -0
- package/tmlpd-pi-extension/dist/tools/tmlpdTools.d.ts +101 -0
- package/tmlpd-pi-extension/dist/tools/tmlpdTools.d.ts.map +1 -0
- package/tmlpd-pi-extension/dist/tools/tmlpdTools.js +368 -0
- package/tmlpd-pi-extension/dist/tools/tmlpdTools.js.map +1 -0
- package/tmlpd-pi-extension/dist/utils/batchProcessor.d.ts +96 -0
- package/tmlpd-pi-extension/dist/utils/batchProcessor.d.ts.map +1 -0
- package/tmlpd-pi-extension/dist/utils/batchProcessor.js +170 -0
- package/tmlpd-pi-extension/dist/utils/batchProcessor.js.map +1 -0
- package/tmlpd-pi-extension/dist/utils/compression.d.ts +61 -0
- package/tmlpd-pi-extension/dist/utils/compression.d.ts.map +1 -0
- package/tmlpd-pi-extension/dist/utils/compression.js +281 -0
- package/tmlpd-pi-extension/dist/utils/compression.js.map +1 -0
- package/tmlpd-pi-extension/dist/utils/reliability.d.ts +74 -0
- package/tmlpd-pi-extension/dist/utils/reliability.d.ts.map +1 -0
- package/tmlpd-pi-extension/dist/utils/reliability.js +177 -0
- package/tmlpd-pi-extension/dist/utils/reliability.js.map +1 -0
- package/tmlpd-pi-extension/dist/utils/speculativeDecoding.d.ts +117 -0
- package/tmlpd-pi-extension/dist/utils/speculativeDecoding.d.ts.map +1 -0
- package/tmlpd-pi-extension/dist/utils/speculativeDecoding.js +246 -0
- package/tmlpd-pi-extension/dist/utils/speculativeDecoding.js.map +1 -0
- package/tmlpd-pi-extension/dist/utils/tokenUtils.d.ts +50 -0
- package/tmlpd-pi-extension/dist/utils/tokenUtils.d.ts.map +1 -0
- package/tmlpd-pi-extension/dist/utils/tokenUtils.js +124 -0
- package/tmlpd-pi-extension/dist/utils/tokenUtils.js.map +1 -0
- package/tmlpd-pi-extension/examples/QUICKSTART.md +183 -0
- package/tmlpd-pi-extension/package-lock.json +75 -0
- package/tmlpd-pi-extension/package.json +172 -0
- package/tmlpd-pi-extension/python/examples.py +53 -0
- package/tmlpd-pi-extension/python/integrations.py +330 -0
- package/tmlpd-pi-extension/python/setup.py +28 -0
- package/tmlpd-pi-extension/python/tmlpd.py +369 -0
- package/tmlpd-pi-extension/qna/REDDIT_GAP_ANALYSIS.md +299 -0
- package/tmlpd-pi-extension/qna/TMLPD_QNA.md +751 -0
- package/tmlpd-pi-extension/skill/SKILL.md +238 -0
- package/{src → tmlpd-pi-extension/src}/index.ts +1 -1
- package/tmlpd-pi-extension/tsconfig.json +18 -0
- package/demo/research-demo.js +0 -266
- package/notebooks/quickstart.ipynb +0 -157
- package/rust/tmlpd.h +0 -268
- package/src/cache/prefixCache.ts +0 -365
- package/src/routing/advancedRouter.ts +0 -406
- package/src/utils/speculativeDecoding.ts +0 -344
- /package/{src → tmlpd-pi-extension/src}/cache/responseCache.ts +0 -0
- /package/{src → tmlpd-pi-extension/src}/cost/costTracker.ts +0 -0
- /package/{src → tmlpd-pi-extension/src}/memory/episodicMemory.ts +0 -0
- /package/{src → tmlpd-pi-extension/src}/orchestration/haloOrchestrator.ts +0 -0
- /package/{src → tmlpd-pi-extension/src}/orchestration/mctsWorkflow.ts +0 -0
- /package/{src → tmlpd-pi-extension/src}/providers/localProvider.ts +0 -0
- /package/{src → tmlpd-pi-extension/src}/providers/registry.ts +0 -0
- /package/{src → tmlpd-pi-extension/src}/tools/tmlpdTools.ts +0 -0
- /package/{src → tmlpd-pi-extension/src}/utils/batchProcessor.ts +0 -0
- /package/{src → tmlpd-pi-extension/src}/utils/compression.ts +0 -0
- /package/{src → tmlpd-pi-extension/src}/utils/reliability.ts +0 -0
- /package/{src → tmlpd-pi-extension/src}/utils/tokenUtils.ts +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Quick test to verify fixes
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
const TwitterTestHelper = require('./comprehensive_quantum_claw_alexa_test/utils/twitter-test-helper');
|
|
8
|
+
const ConversationTestHelper = require('./comprehensive_quantum_claw_alexa_test/utils/conversation-test-helper');
|
|
9
|
+
|
|
10
|
+
async function testFixes() {
|
|
11
|
+
console.log('🧪 Testing Fixes...\n');
|
|
12
|
+
|
|
13
|
+
// Test 1: Twitter Hindi language detection
|
|
14
|
+
console.log('Test 1: Twitter Hindi Language Detection');
|
|
15
|
+
const hindiResult = await TwitterTestHelper.testTwitterIntegration('Show me tweets in Hindi');
|
|
16
|
+
console.log(' Query:', hindiResult.query);
|
|
17
|
+
console.log(' Success:', hindiResult.success);
|
|
18
|
+
if (hindiResult.tweets && hindiResult.tweets.length > 0) {
|
|
19
|
+
console.log(' Tweet 1 text:', hindiResult.tweets[0].text);
|
|
20
|
+
console.log(' Tweet 1 language:', hindiResult.tweets[0].language);
|
|
21
|
+
console.log(' Tweet 1 expectedLanguage:', hindiResult.tweets[0].expectedLanguage);
|
|
22
|
+
|
|
23
|
+
const validation = TwitterTestHelper.validateTweetLanguageDetection(hindiResult, 'hi');
|
|
24
|
+
console.log(' Validation passed:', validation.passed);
|
|
25
|
+
console.log(' Match rate:', validation.details.matchRate);
|
|
26
|
+
}
|
|
27
|
+
console.log('');
|
|
28
|
+
|
|
29
|
+
// Test 2: Twitter no results search
|
|
30
|
+
console.log('Test 2: Twitter No Results Search');
|
|
31
|
+
const noResultsResult = await TwitterTestHelper.testTweetSearch('xyz123nonexistent', 0);
|
|
32
|
+
console.log(' Success:', noResultsResult.success);
|
|
33
|
+
console.log(' Expected:', noResultsResult.expectedResults);
|
|
34
|
+
console.log(' Actual:', noResultsResult.actualResults);
|
|
35
|
+
console.log('');
|
|
36
|
+
|
|
37
|
+
// Test 3: Twitter very_long_topic edge case
|
|
38
|
+
console.log('Test 3: Twitter very_long_topic Edge Case');
|
|
39
|
+
const longTopicResult = await TwitterTestHelper.testTwitterIntegration('a'.repeat(100));
|
|
40
|
+
console.log(' Success:', longTopicResult.success);
|
|
41
|
+
console.log(' Error:', longTopicResult.error || 'None');
|
|
42
|
+
console.log('');
|
|
43
|
+
|
|
44
|
+
// Test 4: Conversation context session persistence
|
|
45
|
+
console.log('Test 4: Conversation Context Session Persistence');
|
|
46
|
+
const mockSession = {
|
|
47
|
+
id: 'test-session',
|
|
48
|
+
userId: 'test-user',
|
|
49
|
+
state: {
|
|
50
|
+
lastQuery: 'What is AI?',
|
|
51
|
+
totalTurns: 2,
|
|
52
|
+
duration: 5000,
|
|
53
|
+
name: 'Test Session'
|
|
54
|
+
},
|
|
55
|
+
metadata: {
|
|
56
|
+
duration: 5000,
|
|
57
|
+
turnCount: 2,
|
|
58
|
+
language: 'en',
|
|
59
|
+
complexity: 'simple'
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const expectedState = {
|
|
64
|
+
state: { name: 'Test' },
|
|
65
|
+
fields: ['duration', 'turnCount']
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const validation = ConversationTestHelper.validateSessionPersistence(mockSession, expectedState);
|
|
69
|
+
console.log(' Validation passed:', validation.passed);
|
|
70
|
+
console.log(' State match:', validation.details.stateMatch);
|
|
71
|
+
console.log(' Context preserved:', validation.details.contextPreserved);
|
|
72
|
+
console.log('');
|
|
73
|
+
|
|
74
|
+
console.log('✅ All tests complete!');
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
testFixes().catch(console.error);
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adaptive-memory-multi-model-router",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"version_description": "v1.2.0 - Research-backed Multi-LLM Router based on arXiv: RouteLLM (2404.06035), RadixAttention (2312.07104), Medusa (2401.10774), FlashAttention (2407.07403). 120+ keywords for LLM/ML discoverability. 13 PI tools.",
|
|
5
|
-
"description": "A3M Router - Adaptive Memory Multi-Model Router with learned routing
|
|
5
|
+
"description": "A3M Router - Adaptive Memory Multi-Model Router with learned routing, prefix caching, and speculative decoding for LLM/ML developers.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"bin": {
|
|
9
|
-
"a3m-router": "dist/cli.js"
|
|
10
|
-
"adaptive-memory-multi-model-router": "dist/cli.js"
|
|
9
|
+
"a3m-router": "dist/cli.js"
|
|
11
10
|
},
|
|
12
11
|
"scripts": {
|
|
13
12
|
"build": "tsc",
|
|
@@ -17,30 +16,128 @@
|
|
|
17
16
|
"python:examples": "python3 python/examples.py"
|
|
18
17
|
},
|
|
19
18
|
"keywords": [
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"memory-based-router",
|
|
28
|
-
"routellm",
|
|
29
|
-
"radix-attention",
|
|
30
|
-
"speculative-decoding",
|
|
31
|
-
"medusa",
|
|
32
|
-
"llm",
|
|
19
|
+
"pi-extension",
|
|
20
|
+
"pi",
|
|
21
|
+
"pi-package",
|
|
22
|
+
"pi-coding-agent",
|
|
23
|
+
"pi-agent",
|
|
24
|
+
"tmlpd",
|
|
25
|
+
"treequest",
|
|
33
26
|
"multi-llm",
|
|
34
27
|
"parallel-ai",
|
|
35
|
-
"
|
|
28
|
+
"llm-orchestration",
|
|
29
|
+
"llm",
|
|
30
|
+
"agent-orchestration",
|
|
31
|
+
"multi-agent",
|
|
32
|
+
"agent",
|
|
33
|
+
"parallel",
|
|
34
|
+
"streaming",
|
|
35
|
+
"cost-tracking",
|
|
36
|
+
"cost-optimization",
|
|
37
|
+
"cache",
|
|
38
|
+
"caching",
|
|
39
|
+
"circuit-breaker",
|
|
40
|
+
"retry",
|
|
41
|
+
"exponential-backoff",
|
|
42
|
+
"mcts",
|
|
43
|
+
"monte-carlo-tree-search",
|
|
44
|
+
"workflow-optimization",
|
|
45
|
+
"hierarchical-planning",
|
|
46
|
+
"halo",
|
|
47
|
+
"episodic-memory",
|
|
48
|
+
"semantic-memory",
|
|
49
|
+
"agent-memory",
|
|
36
50
|
"python",
|
|
51
|
+
"python-bindings",
|
|
52
|
+
"pypi",
|
|
37
53
|
"langchain",
|
|
38
54
|
"llamaindex",
|
|
55
|
+
"llama-index",
|
|
39
56
|
"autogen",
|
|
40
57
|
"crewai",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
58
|
+
"huggingface",
|
|
59
|
+
"transformers",
|
|
60
|
+
"agent-codegen",
|
|
61
|
+
"ai-coding",
|
|
62
|
+
"openai",
|
|
63
|
+
"anthropic",
|
|
64
|
+
"google",
|
|
65
|
+
"groq",
|
|
66
|
+
"cerebras",
|
|
67
|
+
"mistral",
|
|
68
|
+
"xai",
|
|
69
|
+
"zai",
|
|
70
|
+
"claude",
|
|
71
|
+
"gpt-4",
|
|
72
|
+
"gemini",
|
|
73
|
+
"llama",
|
|
74
|
+
"model-router",
|
|
75
|
+
"model-routing",
|
|
76
|
+
"llm-router",
|
|
77
|
+
"ai-agents",
|
|
78
|
+
"autonomous-agents",
|
|
79
|
+
"memory-based-router",
|
|
80
|
+
"memory-based-llm-router",
|
|
81
|
+
"multi-llm-router",
|
|
82
|
+
"llm-memory-router",
|
|
83
|
+
"adaptive-router",
|
|
84
|
+
"adaptive-llm-router",
|
|
85
|
+
"intelligent-router",
|
|
86
|
+
"intelligent-llm-router",
|
|
87
|
+
"learning-router",
|
|
88
|
+
"contextual-router",
|
|
89
|
+
"context-aware-router",
|
|
90
|
+
"task-aware-router",
|
|
91
|
+
"memory-augmented",
|
|
92
|
+
"memory-augmented-llm",
|
|
93
|
+
"episodic-memory-router",
|
|
94
|
+
"semantic-memory-router",
|
|
95
|
+
"task-memory",
|
|
96
|
+
"cross-context-memory",
|
|
97
|
+
"token-compression",
|
|
98
|
+
"context-compression",
|
|
99
|
+
"ison-format",
|
|
100
|
+
"message-truncation",
|
|
101
|
+
"context-management",
|
|
102
|
+
"local-llm",
|
|
103
|
+
"ollama",
|
|
104
|
+
"vllm",
|
|
105
|
+
"lmstudio",
|
|
106
|
+
"local-model",
|
|
107
|
+
"privacy-llm",
|
|
108
|
+
"batch-processing",
|
|
109
|
+
"batch-execution",
|
|
110
|
+
"priority-queue",
|
|
111
|
+
"rate-limiting",
|
|
112
|
+
"token-counting",
|
|
113
|
+
"cost-estimation",
|
|
114
|
+
"cost-prediction",
|
|
115
|
+
"parallel-execution",
|
|
116
|
+
"multi-provider",
|
|
117
|
+
"fallback-chain",
|
|
118
|
+
"intelligent-failover",
|
|
119
|
+
"kv-cache",
|
|
120
|
+
"routellm",
|
|
121
|
+
"prefix-caching",
|
|
122
|
+
"radix-attention",
|
|
123
|
+
"speculative-decoding",
|
|
124
|
+
"medusa",
|
|
125
|
+
"eagle",
|
|
126
|
+
"flashattention",
|
|
127
|
+
"pagedattention",
|
|
128
|
+
"kv-cache-quantization",
|
|
129
|
+
"llmlingua",
|
|
130
|
+
"streamingllm",
|
|
131
|
+
"multimodel-orchestration",
|
|
132
|
+
"multi-agent-debate",
|
|
133
|
+
"self-consistency",
|
|
134
|
+
"tensor-parallelism",
|
|
135
|
+
"continuous-batching",
|
|
136
|
+
"arxiv",
|
|
137
|
+
"research-backed",
|
|
138
|
+
"icml",
|
|
139
|
+
"neurips",
|
|
140
|
+
"iclr"
|
|
44
141
|
],
|
|
45
142
|
"author": "Subho Das",
|
|
46
143
|
"license": "MIT",
|
|
@@ -72,12 +169,6 @@
|
|
|
72
169
|
"type": "individual",
|
|
73
170
|
"url": "https://github.com/sponsors/Das-rebel"
|
|
74
171
|
},
|
|
75
|
-
"shortName": "A3M
|
|
76
|
-
"displayName": "A3M Router"
|
|
77
|
-
"badges": {
|
|
78
|
-
"npm": "https://img.shields.io/npm/v/adaptive-memory-multi-model-router",
|
|
79
|
-
"downloads": "https://img.shields.io/npm/dm/adaptive-memory-multi-model-router",
|
|
80
|
-
"ai-native": "https://img.shields.io/badge/AI-Native-brightgreen",
|
|
81
|
-
"research-backed": "https://img.shields.io/badge/Research-ArXiv-blue"
|
|
82
|
-
}
|
|
172
|
+
"shortName": "A3M Router",
|
|
173
|
+
"displayName": "A3M Router - Adaptive Memory Multi-Model Router"
|
|
83
174
|
}
|
package/package.json.tmp
ADDED
|
File without changes
|
package/qna/TMLPD_QNA.md
CHANGED
|
@@ -727,7 +727,7 @@ console.log(result.strategy); // { plan: [...], assignments: {...} }
|
|
|
727
727
|
|
|
728
728
|
```bash
|
|
729
729
|
# Install
|
|
730
|
-
npm install
|
|
730
|
+
npm install tmlpd-pi
|
|
731
731
|
|
|
732
732
|
# Python (copy python/tmlpd.py to your project)
|
|
733
733
|
```
|
|
@@ -740,12 +740,12 @@ result = quick_process("What is quantum entanglement?")
|
|
|
740
740
|
|
|
741
741
|
```typescript
|
|
742
742
|
// Quick start - TypeScript
|
|
743
|
-
import { createTMLPD } from "
|
|
743
|
+
import { createTMLPD } from "tmlpd-pi";
|
|
744
744
|
const tmlpd = createTMLPD();
|
|
745
745
|
const result = await tmlpd.executeParallel("Explain quantum", ["gpt-4o", "claude"]);
|
|
746
746
|
```
|
|
747
747
|
|
|
748
748
|
---
|
|
749
749
|
|
|
750
|
-
**Package:** [npmjs.com/package/
|
|
750
|
+
**Package:** [npmjs.com/package/tmlpd-pi](https://npmjs.com/package/tmlpd-pi)
|
|
751
751
|
**Repository:** [github.com/Das-rebel/tmlpd-skill](https://github.com/Das-rebel/tmlpd-skill)
|
package/skill/SKILL.md
CHANGED
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
// Batch processing
|
|
35
35
|
BatchProcessor, // Priority queuing
|
|
36
36
|
TMLPD_PI_TOOLS // 13 PI tool definitions
|
|
37
|
-
} from "
|
|
37
|
+
} from "tmlpd-pi";
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
## Direct Imports (Python)
|
|
@@ -226,7 +226,7 @@ icml, neurips, iclr, token-compression, context-compression
|
|
|
226
226
|
|
|
227
227
|
## npm
|
|
228
228
|
|
|
229
|
-
**Package:** https://npmjs.com/package/
|
|
229
|
+
**Package:** https://npmjs.com/package/tmlpd-pi
|
|
230
230
|
**Version:** 1.2.0 | **Files:** 94 | **Size:** 543KB unpacked
|
|
231
231
|
|
|
232
232
|
## Reference
|