doc(sdk): Add documentation for model orchestration - #132
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughIntroduces a Smart Orchestration layer with new modules, types, config, and data to enable provider-model routing based on task analysis, constraints, and health. Updates NeuroLink and ProviderFactory public APIs to integrate orchestration, health monitoring, and metrics. Adds an advanced planning document detailing architecture, flow, and configuration. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client
participant NL as NeuroLink (Core)
participant SO as SmartOrchestrator
participant LC as LightweightClassifier
participant TC as TaskClassifier
participant CO as ConstraintOptimizer
participant PF as ProviderFactory
participant AP as AI Provider
participant HM as HealthMonitor
Client->>NL: generate()/stream()(request, config)
NL->>SO: route(request, smartOrchestrationConfig)
SO->>LC: quick classify(request)
alt needs deep classification
SO->>TC: analyze task
TC-->>SO: task profile
else
LC-->>SO: task profile (light)
end
SO->>CO: apply constraints (cost, latency, policy)
CO-->>SO: candidate set + scores
SO->>HM: filter by health & availability
HM-->>SO: healthy candidates
SO->>PF: create provider(model, provider, telemetry hooks)
PF-->>SO: provider instance
SO->>AP: execute request
AP-->>SO: result / stream
SO-->>NL: routed result
NL-->>Client: response/stream
note over HM,PF: Health metrics collected in real-time
SO->>HM: update metrics (success/error/latency)
HM-->>SO: updated health summary
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60–90 minutes Poem
✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
2e5b93c to
f2ffa97
Compare
f2ffa97 to
9c4be54
Compare
9c4be54 to
b7c1c8e
Compare
b7c1c8e to
447cbce
Compare
447cbce to
dfcd631
Compare
dfcd631 to
91f807c
Compare
Pull Request
Description
Created documentation markdown file for advanced model and provider orchestration.
Type of Change
Related Issues
None
AI Provider Impact
None, only documentation update.
Component Impact
Testing
Test Environment
Performance Impact
Checklist
Summary by CodeRabbit
New Features
Documentation
Refactor