Designing a Multi-Model Agent Architecture: Model Routing, Provider Abstraction, and Task-Specific Intelligence
A practical architecture for agents that use multiple LLMs: separate tasks from models, hide providers behind adapters, apply hard constraints before ranking, and let per-task evaluation, not model names, drive routing.
Table of Contents
- Introduction
- 1. Why One Model Is Not Enough
- 2. Separate Tasks from Models
- 3. Define a Model Capability Contract
- 4. Build a Provider Abstraction Layer
- 5. Design the Model Routing Engine
- 6. Task-Specific Model Responsibilities
- 7. Fallback, Retry, and Degradation
- 8. Model Evaluation and Observability
- 9. Avoiding an Overengineered Routing System
- 10. Reference Architecture
- 11. Implementation Roadmap
- 12. Summary
Introduction
An AI agent does not necessarily need one model to perform every task.
A single agent execution may involve several different responsibilities:
- Understanding a user's request.
- Classifying the task.
- Extracting structured information.
- Planning the next steps.
- Selecting tools.
- Reasoning about tool results.
- Generating a final response.
These responsibilities have different requirements.
A classification task may need a fast and inexpensive model. Structured extraction may require consistent JSON output. Planning may benefit from a model with stronger reasoning capabilities. Tool selection may prioritize reliable structured output over creative language generation.
Using one model for all these tasks creates an unnecessary constraint.
However, simply connecting multiple models does not create a good architecture. Without clear boundaries, the application becomes tightly coupled to provider-specific APIs, routing rules become difficult to maintain, and failures become harder to diagnose.
The goal is to build an architecture where:
- Tasks define what intelligence is required.
- Models provide capabilities.
- Providers expose models through a consistent interface.
- A routing engine selects an appropriate model.
- Evaluation determines whether the routing decisions are actually effective.
This article explores how to build that architecture.
1. Why One Model Is Not Enough
Consider a Contract Operations Assistant.
A user uploads a contract and asks:
Review this contract, identify unusual clauses, calculate the financial exposure, and prepare a summary.
The agent may need to perform the following operations:
| Operation | Primary requirement |
|---|---|
| Request classification | Low latency |
| Contract extraction | Structured output |
| Clause analysis | Strong reasoning |
| Financial calculation | Deterministic execution |
| Tool selection | Reliable tool calling |
| Final summary | Clear language and grounded output |
These operations are not equivalent.
A model that performs well at natural language generation may not be the most cost-effective option for classification. A model with strong reasoning may be unnecessary for extracting a contract date.
More importantly, some operations should not use an LLM at all.
For example, calculating financial exposure should use deterministic application code whenever the formula and input data are known.
The actual problem
The problem is not that one model cannot perform multiple tasks.
The problem is that model capabilities, cost, latency, and reliability vary across tasks.
A system that always uses the same model makes every operation inherit the same trade-offs.
flowchart TD
A[User Request] --> B[Single Model]
B --> C[Classification]
B --> D[Extraction]
B --> E[Planning]
B --> F[Tool Selection]
B --> G[Final Response]
style B fill:#f4cccc,stroke:#cc0000A multi-model architecture introduces an explicit decision layer:
flowchart TD
A[Agent Runtime] --> B[Task Definition]
B --> C[Model Router]
C --> D[Fast Model]
C --> E[Structured Output Model]
C --> F[Reasoning Model]
D --> G[Task Result]
E --> G
F --> GThe important distinction is that the agent does not select a model based on its name. It requests a capability appropriate to the task.
2. Separate Tasks from Models
A common implementation mistake is to couple application logic directly to a model identifier.
For example:
if (task.type === "classification") {
return openai.chat.completions.create({
model: "some-fast-model",
messages,
});
}This looks simple, but it introduces several problems:
- Provider-specific API calls spread throughout the application.
- Model changes require modifying business logic.
- Fallback behavior becomes inconsistent.
- Testing task logic independently becomes difficult.
- Model selection cannot be evaluated centrally.
Instead, the application should define a task contract.
A task describes the work that needs to be performed, not which model must perform it.
Define task requirements
type TaskType =
| "classification"
| "extraction"
| "planning"
| "tool_selection"
| "reasoning"
| "summarization";
type TaskRequirements = {
task: TaskType;
structuredOutput?: boolean;
toolCalling?: boolean;
reasoningLevel?: "low" | "medium" | "high";
maxLatencyMs?: number;
maxCostPerRequest?: number;
};The runtime can now request a capability without knowing the underlying provider.
const decision = await modelRouter.select({
requirements: {
task: "classification",
structuredOutput: true,
reasoningLevel: "low",
maxLatencyMs: 1000,
maxCostPerRequest: 0.001,
},
});The router is responsible for selecting a suitable model.
Why this boundary matters
There are three separate concepts:
- Task: What does the application need to accomplish?
- Capability: What must a model support to accomplish it?
- Model: Which concrete implementation provides those capabilities?
Keeping these concepts separate makes the system easier to evolve.
3. Define a Model Capability Contract
A model should not be described only by its name, provider, or context window.
The routing engine needs to understand what the model can actually do.
For example:
type ModelCapabilities = {
textGeneration: boolean;
structuredOutput: boolean;
toolCalling: boolean;
vision: boolean;
streaming: boolean;
maxContextTokens: number;
maxOutputTokens: number;
reasoningLevels: Array<"low" | "medium" | "high">;
};A model configuration can then describe its capabilities and operational characteristics.
type ModelDefinition = {
id: string;
providerId: string;
modelName: string;
capabilities: ModelCapabilities;
pricing: {
inputPerMillionTokens: number;
outputPerMillionTokens: number;
};
limits: {
requestsPerMinute?: number;
tokensPerMinute?: number;
};
enabled: boolean;
};This metadata should be maintained separately from task execution.
Capability is not the same as quality
A model may support structured output, but that does not guarantee that it produces correct structured data for a particular task.
Similarly, supporting tool calling does not guarantee that it selects the correct tool.
We should distinguish:
- Capability: Whether the model supports a feature.
- Performance: How well it performs a particular task.
- Operational behavior: Its latency, availability, and cost.
- Policy: Whether the model is allowed for a particular task or data classification.
The router needs all four dimensions.
Model registry
A model registry stores the available model definitions.
interface ModelRegistry {
get(modelId: string): Promise<ModelDefinition | null>;
listEnabled(): Promise<ModelDefinition[]>;
listByProvider(providerId: string): Promise<ModelDefinition[]>;
}The registry can be backed by configuration files or a database.
For an early implementation, a static configuration is usually sufficient. A database becomes useful when models need to be enabled, disabled, or configured dynamically.
4. Build a Provider Abstraction Layer
Different providers expose different APIs.
Even when they support similar capabilities, their request formats, response formats, streaming protocols, error types, and tool-calling behavior may differ.
The application should not need to understand these differences.
Define a common interface
type ModelMessage = {
role: "system" | "user" | "assistant";
content: string;
};
type GenerateRequest = {
model: string;
messages: ModelMessage[];
temperature?: number;
maxOutputTokens?: number;
responseFormat?: "text" | "json";
};
type GenerateResponse = {
content: string;
inputTokens: number;
outputTokens: number;
finishReason: string;
};
interface ModelProvider {
generate(
request: GenerateRequest,
): Promise<GenerateResponse>;
}The interface defines the application-facing contract.
A provider adapter translates that contract into the provider's native API.
class OpenAIProvider implements ModelProvider {
async generate(
request: GenerateRequest,
): Promise<GenerateResponse> {
// Translate the application request into the provider API.
// Normalize the provider response into GenerateResponse.
throw new Error("Implementation omitted");
}
}Another provider implements the same contract:
class AnthropicProvider implements ModelProvider {
async generate(
request: GenerateRequest,
): Promise<GenerateResponse> {
// Translate the request into the provider's native format.
// Normalize the response.
throw new Error("Implementation omitted");
}
}The examples are intentionally simplified. A production interface should model tool calls, streaming, multimodal content, token usage, and provider-specific metadata explicitly rather than silently discarding them.
Provider adapter versus model definition
These are different responsibilities.
| Component | Responsibility |
|---|---|
| Provider adapter | Communicates with the provider |
| Model definition | Describes a specific model |
| Model registry | Stores available model definitions |
| Model router | Selects a model for a task |
| Execution service | Executes the request and handles operational concerns |
A provider may expose multiple models. Therefore, a provider should not be treated as a model.
flowchart TD
A[Agent Runtime] --> B[Model Router]
B --> C[Model Registry]
B --> D[Model Execution Service]
D --> E[Provider Adapter]
D --> F[Another Provider Adapter]
E --> G[Provider A API]
F --> H[Provider B API]
C --> I[Model Definitions]This separation also makes it possible to replace a provider without rewriting the agent's business logic.
5. Design the Model Routing Engine
The model router is the central component of the architecture.
Its responsibility is to select a model that satisfies the task requirements while respecting operational and application policies.
It should not be a collection of hard-coded provider names.
Routing inputs
A routing decision can consider:
- Task type.
- Required capabilities.
- Reasoning requirements.
- Context size.
- Expected output size.
- Latency budget.
- Cost budget.
- Model availability.
- Tenant or data security policies.
- Historical task performance.
A routing request might look like this:
type ModelRoutingRequest = {
requirements: TaskRequirements;
inputTokensEstimate?: number;
tenantId?: string;
dataClassification?: "public" | "internal" | "confidential";
};The tenant and data classification are important because not every model or provider is necessarily approved for every dataset.
A simple routing algorithm
Start with hard constraints.
For example:
- Exclude disabled models.
- Exclude models that do not support required capabilities.
- Exclude models that violate security policies.
- Exclude models that cannot fit the estimated context.
- Exclude models that exceed a strict cost or latency constraint.
- Rank the remaining candidates.
This is better than ranking every model first and discovering afterward that the selected model cannot execute the task.
Candidate scoring
Once the eligible candidates are identified, the router can score them.
A simple conceptual score is:
Score(m, t) = w_q · Q(m, t) − w_c · C(m, t) − w_l · L(m, t)Where:
Q(m, t)is measured quality for modelmon taskt.C(m, t)is normalized cost.L(m, t)is normalized latency.w_q,w_c,w_lare task-specific weights.
These values should be derived from evaluation and operational measurements, not invented from model names.
For example, a classification task may place more weight on latency and cost. A high-impact contract reasoning task may prioritize measured quality.
Not every task needs dynamic scoring. Explicit task policies are often more predictable.
Separate hard constraints from preferences
This distinction is essential.
A hard constraint means a model must not be selected if it violates the condition.
A preference means a model is better when it satisfies the condition, but another candidate may still be acceptable.
For example:
| Requirement | Type |
|---|---|
| Supports required tool calling | Hard constraint |
| Approved for confidential data | Hard constraint |
| Context window is large enough | Hard constraint |
| Lower latency | Preference |
| Lower cost | Preference |
| Higher measured task accuracy | Preference or minimum quality threshold |
Router interface
type RoutingDecision = {
modelId: string;
providerId: string;
reason: string;
};
interface ModelRouter {
select(
request: ModelRoutingRequest,
): Promise<RoutingDecision>;
}The router should also record why a model was selected. This is valuable for debugging, cost analysis, and later evaluation.
Start with a policy table
Before any scoring, a simple routing table is often the best starting point.
type TaskModelPolicy = {
preferredModelIds: string[];
fallbackModelIds: string[];
maxAttempts: number;
};
const policies: Record<TaskType, TaskModelPolicy> = {
classification: { preferredModelIds: ["fast-model"], fallbackModelIds: ["general-model"], maxAttempts: 2 },
extraction: { preferredModelIds: ["structured-model"], fallbackModelIds: ["general-model"], maxAttempts: 2 },
planning: { preferredModelIds: ["reasoning-model"], fallbackModelIds: ["general-model"], maxAttempts: 2 },
tool_selection: { preferredModelIds: ["tool-model"], fallbackModelIds: ["reasoning-model"], maxAttempts: 2 },
reasoning: { preferredModelIds: ["reasoning-model"], fallbackModelIds: ["general-model"], maxAttempts: 2 },
summarization: { preferredModelIds: ["fast-model"], fallbackModelIds: ["general-model"], maxAttempts: 2 },
};These model identifiers are illustrative configuration values, not recommendations for particular vendors.
The policy is explicit and easy to inspect. Capability filtering and scoring can be added later without changing the task contracts.
Avoid routing every individual LLM call dynamically
If a workflow already knows that a step performs structured extraction, the task policy can be selected directly.
Dynamic routing is more valuable when:
- Several models are eligible.
- Input size varies significantly.
- Latency or cost budgets change.
- Provider availability changes.
- Evaluation data supports meaningful ranking.
The routing engine should add intelligence where it improves outcomes, not merely because dynamic routing sounds sophisticated.
6. Task-Specific Model Responsibilities
The most useful feature of a multi-model architecture is not the number of models.
It is the ability to assign responsibilities based on task requirements.
Consider the following division of work.
6.1 Classification
Classification determines what kind of operation is required.
Examples:
- Is the request asking for contract analysis or document summarization?
- Does the task require retrieval?
- Is the user asking for a new action or clarification?
- Which workflow should be started?
Classification generally benefits from low latency, predictable output, and a constrained schema.
It should not automatically use the most expensive reasoning model.
6.2 Structured extraction
Extraction converts unstructured information into a defined data structure.
For example:
type ContractMetadata = {
parties: string[];
effectiveDate: string | null;
expirationDate: string | null;
governingLaw: string | null;
contractValue: number | null;
currency: string | null;
};The extraction model must produce output that conforms to the schema.
However, schema validity is not semantic correctness. A valid JSON response can still contain incorrect dates or parties.
The application should validate both structure and business constraints.
6.3 Planning and reasoning
Planning involves breaking a goal into steps and deciding what information or actions are required.
For example:
- Retrieve the contract.
- Extract relevant clauses.
- Identify unusual terms.
- Calculate financial exposure.
- Compare the findings against a policy.
- Produce a report with evidence.
This task may justify a model with stronger reasoning capabilities.
But planning should remain bounded by the agent runtime's state machine and execution policies.
The model proposes a plan. The runtime decides whether and how that plan can execute.
6.4 Tool selection
Tool selection determines which tool should be used and with what arguments.
For example:
type ToolSelection = {
toolName: string;
arguments: Record<string, unknown>;
rationale: string;
};The application must validate the selected tool and arguments before execution.
A model's tool-calling capability is not permission to execute arbitrary operations.
6.5 Summarization
Summarization converts large amounts of information into a smaller representation.
Examples include:
- Summarizing retrieved clauses.
- Compressing conversation history.
- Producing execution summaries.
- Creating final reports.
A summarization task may not require the same model used for complex reasoning.
6.6 Deterministic operations
Not every task belongs to an LLM.
Consider:
- Financial calculations.
- Date comparisons.
- Permission checks.
- Schema validation.
- Database transactions.
- Workflow state transitions.
These should remain deterministic whenever possible.
A useful architecture therefore combines model intelligence with conventional software execution.
flowchart TD
A[Agent Goal] --> B[Task Classification]
B --> C[Task Planner]
C --> D[Information Extraction]
C --> E[Document Retrieval]
C --> F[Tool Selection]
D --> G[Deterministic Validation]
E --> H[Evidence Assembly]
F --> I[Tool Execution]
G --> J[Reasoning]
H --> J
I --> J
J --> K[Final Summarization]7. Fallback, Retry, and Degradation
A multi-provider architecture introduces more options for handling failures.
However, switching providers does not automatically solve every failure.
Failures should be classified.
| Failure | Appropriate behavior |
|---|---|
| Rate limit | Retry with backoff or use an alternative |
| Provider timeout | Retry within the deadline or fail over |
| Provider unavailable | Use an eligible fallback |
| Invalid structured output | Validate, then repair or retry |
| Context too large | Reduce context or use a suitable larger-context model |
| Budget exceeded | Stop or use an approved cheaper strategy |
| Policy violation | Reject; do not bypass through fallback |
Retry is not fallback
Retrying means attempting the same operation again, usually because a transient failure occurred.
Fallback means choosing a different eligible model or provider.
These should be separate decisions.
Example execution flow
flowchart TD
A[Task Request] --> B[Select Model]
B --> C[Execute Request]
C --> D{Successful?}
D -->|Yes| E[Validate Result]
D -->|No| F{Transient Failure?}
F -->|Yes| G{Retry Budget Available?}
G -->|Yes| C
G -->|No| H[Select Fallback]
F -->|No| H
H --> I{Eligible Fallback Exists?}
I -->|Yes| C
I -->|No| J[Return Failure]
E --> K{Valid Result?}
K -->|Yes| L[Return Result]
K -->|No| M[Repair or Retry]
M --> GA production implementation must ensure that retries respect deadlines, attempt limits, and total cost budgets.
It should also distinguish failures that are safe to retry from failures that require application-level reconciliation.
For instance, a model generation request is usually safe to retry from an application-state perspective. A tool call that creates a payment or sends an email may not be safe to repeat without an idempotency mechanism.
Preserve execution context
When a fallback model is selected, the runtime should preserve:
- Original task input.
- Relevant conversation context.
- Output schema.
- Tool definitions.
- Security restrictions.
- Remaining execution budget.
The fallback should change the model, not silently change the task's requirements.
Degradation is a product decision
Degradation means completing a reduced version of the task when the full version cannot run within its constraints.
Examples:
- Return extracted contract metadata without clause analysis when no eligible reasoning model is available.
- Skip an optional summarization step and return the raw findings.
- Queue the task for later processing instead of failing it immediately.
A degraded result must be marked as degraded, both in the response and in the execution record. In a contract review, silent degradation is worse than an explicit failure: the user assumes a full analysis happened.
Which degradations are acceptable should be defined per task in the routing policy, not improvised by the fallback controller at runtime.
8. Model Evaluation and Observability
A router that selects models based only on declared capabilities is incomplete.
The architecture needs evidence about how models actually perform.
Evaluate per task
Do not evaluate a model using one general score.
A model may perform well at summarization but poorly at extraction. Another may select tools accurately but have higher latency.
Build task-specific evaluation datasets.
For the Contract Operations Assistant:
| Task | Evaluation criteria |
|---|---|
| Classification | Accuracy, precision, recall |
| Extraction | Field-level precision and recall |
| Planning | Step coverage, invalid action rate |
| Tool selection | Correct tool, valid arguments |
| Reasoning | Evidence consistency, factual correctness |
| Summarization | Coverage, factual consistency, citation support |
The evaluation dataset should include representative inputs, expected outputs, edge cases, and failure scenarios.
Measure operational behavior
For every model execution, record:
type ModelExecutionMetrics = {
modelId: string;
providerId: string;
task: TaskType;
latencyMs: number;
inputTokens: number;
outputTokens: number;
estimatedCost: number;
success: boolean;
retryCount: number;
fallbackUsed: boolean;
};Additional useful fields include:
- Execution ID.
- Tenant ID, subject to privacy rules.
- Routing policy version.
- Model configuration version.
- Provider request identifier.
- Error category.
- Validation result.
- Evaluation result, when available.
Avoid logging raw confidential prompts or contract contents by default.
Track quality and cost together
A cheap model that produces invalid outputs may increase total system cost because the runtime needs retries, repair calls, or human intervention.
The relevant metric is not simply the cost of one generation.
It is the cost of successfully completing a task.
Cost per successful task = Total execution cost / Successful task countA model that costs twice as much per request but completes tasks reliably may be more economical overall.
Routing feedback loop
Evaluation results and production metrics can improve routing policies.
flowchart LR
A[Task Execution] --> B[Execution Metrics]
B --> C[Evaluation Pipeline]
C --> D[Task Performance Data]
D --> E[Routing Policy Review]
E --> F[Updated Model Policy]
F --> APolicy updates should be tested before production rollout. A change that improves average quality may still introduce regressions for a specific task or tenant.
9. Avoiding an Overengineered Routing System
A multi-model architecture can become unnecessarily complicated.
One common mistake is introducing too many intelligent layers:
- A classifier to identify the task.
- Another classifier to choose a model category.
- A scoring model to rank providers.
- A meta-model to evaluate the scoring result.
- Another agent to decide whether the selected model is appropriate.
Each layer introduces latency, cost, and additional failure modes.
The routing system should be as simple as possible while meeting measurable requirements.
Start with explicit policies
Start with the static policy table from section 5. Add capability filtering, operational fallback, measured optimization, and finally adaptive routing in the order described in the implementation roadmap, and only when the data shows a meaningful benefit.
A useful design rule
Do not introduce a routing decision unless it changes one of the following:
- Task quality.
- Cost.
- Latency.
- Availability.
- Security or compliance.
If a routing layer does not improve one of these dimensions, it may not be necessary.
10. Reference Architecture
The complete architecture can be divided into five major layers.
flowchart TB
subgraph Runtime["Agent Runtime"]
A[Task Execution]
B[Workflow State]
C[Execution Budget]
end
subgraph Routing["Model Routing Layer"]
D[Task Requirements]
E[Policy Engine]
F[Candidate Selection]
G[Fallback Controller]
end
subgraph Registry["Model Management"]
H[Model Registry]
I[Capability Metadata]
J[Task Evaluation Data]
end
subgraph Execution["Model Execution Layer"]
K[Model Execution Service]
L[Provider Adapter A]
M[Provider Adapter B]
N[Provider Adapter C]
end
subgraph External["External Providers"]
O[Provider A]
P[Provider B]
Q[Provider C]
end
A --> D
B --> D
C --> E
D --> E
E --> F
H --> F
I --> F
J --> E
F --> K
G --> K
K --> L
K --> M
K --> N
L --> O
M --> P
N --> QResponsibility boundaries
| Component | Responsibility |
|---|---|
| Agent runtime | Controls task lifecycle |
| Task requirements | Defines the requested intelligence |
| Policy engine | Enforces constraints and routing rules |
| Model registry | Describes available models |
| Router | Selects an eligible model |
| Execution service | Handles execution, retry, and timeout |
| Provider adapter | Translates provider-specific APIs |
| Evaluation pipeline | Measures task performance |
The model router should not own the agent's state machine. The provider adapter should not decide business policies. The execution service should not silently override security constraints.
Each component should have one clear responsibility.
Suggested project structure
src/
agent/
runtime/
execution.ts
state-machine.ts
task.ts
models/
contracts/
model-provider.ts
model-registry.ts
model-router.ts
registry/
model-definition.ts
model-config.ts
routing/
routing-policy.ts
policy-engine.ts
candidate-selector.ts
execution/
model-executor.ts
retry-policy.ts
execution-budget.ts
providers/
openai/
provider.ts
anthropic/
provider.ts
evaluation/
evaluator.ts
task-dataset.ts
metrics.tsThis is a logical organization, not a requirement to create every module immediately.
11. Implementation Roadmap
A good implementation should evolve incrementally.
Phase 1: Establish contracts
Implement:
- Model provider interface.
- Model definition.
- Model registry.
- Task type and requirements.
- Basic model execution service.
At this stage, a static model configuration is sufficient.
Phase 2: Add task-specific routing
Define explicit routing policies for classification, extraction, planning, tool selection, reasoning, and summarization.
Add capability filtering before selecting a model.
Phase 3: Add operational reliability
Implement:
- Timeouts.
- Retry limits.
- Provider health tracking.
- Fallback policies.
- Cost and token budgets.
- Structured error handling.
Connect execution with the existing agent runtime so that failures and timeouts are represented in the execution state.
Phase 4: Build evaluation datasets
Create representative datasets for each task.
Measure quality, latency, and cost independently.
Do not use a single aggregate model score to make every routing decision.
Phase 5: Optimize routing
Use real evaluation and production data to improve model selection.
Introduce dynamic scoring only when it provides measurable benefits over explicit task policies.
Phase 6: Add model management
When the system needs operational flexibility, add:
- Model enable/disable controls.
- Provider configuration.
- Versioned routing policies.
- Tenant-specific model restrictions.
- Rollback mechanisms.
- Audit history.
This turns model selection into a manageable part of the platform rather than a collection of application constants.
12. Summary
A multi-model agent architecture is not simply an agent connected to several LLM providers.
It is an architecture that separates task requirements, model capabilities, provider integrations, and routing policies.
The most important principles are:
- Define tasks independently of model names.
- Represent model capabilities explicitly.
- Keep provider-specific APIs behind adapters.
- Apply hard constraints before model ranking.
- Assign models according to task requirements.
- Keep deterministic operations outside the LLM whenever possible.
- Treat retry, fallback, and degradation as separate policies.
- Evaluate models per task, not through one universal score.
- Optimize based on successful task completion, not just per-request cost.
- Introduce routing complexity only when measurable improvements justify it.
The result is a system where models can be replaced, added, or reassigned without rewriting the agent's business logic.
More importantly, the agent runtime remains responsible for execution control, while the model layer provides the intelligence required by each task.
That separation is what makes a multi-model system maintainable as it grows.
Next article: Designing Agent Memory: Working Memory, Episodic Memory, Semantic Memory, and Long-Term Knowledge.
The next step is to explore how an agent should preserve useful information across tasks and sessions without treating every past interaction as equally important.
- LLM model routing
- AI model provider abstraction
- Multi-provider AI architecture
- Task-specific model selection
- Agent architecture
- LLM fallback strategy
- Model capability management
- AI model evaluation