Multi-Model Integration for Office AI Agents and Compliance Engineering for Embodied Foundation Models
Office AI agent products now offer several models behind one entry point, with differences shown as cost coefficients or quota multipliers. Separately, a general-purpose embodied foundation model has completed the generative AI service filing required in China. This article turns these two developments into a reusable engineering framework. It covers the access, routing, and governance layers, cost and quota control, reliability and fallback design, observability and security boundaries, evaluation and rollback, and the compliance work required before an embodied model goes into service.
Two engineering signals in the industry are worth watching. First, office AI agent products offer several models under one entry point and show the differences as cost coefficients or quota multipliers. Second, a general-purpose embodied foundation model has completed the generative AI service filing required in China. The first signal tests multi-model integration, routing, and governance. The second shows that when embodied AI moves toward a live service, compliance materials, safety assessments, and version governance must come first. This article does not recommend any product. It abstracts a reusable technical framework.
1. From Product Updates to Architecture Questions
Supporting multiple models in an office agent may look like offering more choices. In practice, it is a system design problem that spans the access layer, the routing layer, and the governance layer. Models differ in context length, modality support, tool calling, latency, cost, and compliance region. If model calls are scattered through business code, three problems follow. Capability checks are inconsistent, so mismatches surface only after a task fails. Costs are invisible, which makes accounting by tenant or task difficult. Failures are uncontrolled, and without a fallback chain, an outage in one model has no safe path. A model should therefore be treated as a resource that declares its capabilities, estimates its cost, and can be scheduled by policy, rather than as a hard-coded string.
2. Overall Architecture: Access, Routing, and Governance Layers
The system should be split into three layers. The access layer handles a unified protocol, authentication, retries, and response normalization. The routing layer selects a model based on task characteristics, tenant policies, and real-time status. The governance layer manages quotas, auditing, security filtering, and observability. The layers communicate through stable interfaces, so adding a new model requires only a new adapter and no change to business logic.
For office scenarios, add a task template layer. This layer maps tasks such as writing, summarization, table understanding, and code assistance to capability requirements. The routing layer then matches models to those requirements.
3. Unified Model Abstraction and Capability Declaration
A unified abstraction includes at least a capability declaration, a cost estimate, and an invocation entry point. The capability declaration describes general properties such as context length, input and output modalities, tool calling support, structured output, and streaming. The cost estimate should be based on input and output size and on the cost coefficients set by the organization, not on hard-coded prices. The invocation entry point handles error code normalization and timeout control. The following pseudocode illustrates the idea:
interface ModelAdapter {capability(): CapabilitySet; // capability declaration: modalities, context length, tool calling, etc.estimate(req: Request): CostEstimate;invoke(req: Request): Response;}function normalizeResponse(raw) {return {text: raw.text,toolCalls: raw.toolCalls ?? [],usage: raw.usage ?? estimateUsage(raw),finishReason: raw.finishReason};}
A capability declaration is not a marketing label. Code must be able to check it. For example, if a task requires long-document summarization with structured output, the routing layer should first filter out candidates that do not meet these requirements. Only the remaining candidates should go to scoring.
4. Routing Strategy: Balancing Quality, Cost, Latency, and Compliance
Routing should not simply pick a model at random. It should use policy-based scoring. Common strategies include quality first, cost first, latency first, compliance region first, and hybrid strategies. A hybrid strategy can assign weights for each business line and raise the compliance weight for high-risk tasks. Routing results should also include a fallback chain. If the primary model fails or times out, the system switches to backup models in a preset order. The following pseudocode illustrates the idea:
function route(req, policy) {candidates = allModels.filter(m => m.capability().supports(req));scored = candidates.map(m => ({id: m.id,score: policy.quality * qualityScore(m, req)+ policy.cost * costScore(m, req)+ policy.latency * latencyScore(m)+ policy.compliance * complianceScore(m, req)}));return top(scored).withFallback(buildFallbackChain(candidates));}
The scoring function should be calibrated continuously using offline evaluation and online feedback. For office scenarios, the quality score can include format compliance, factual consistency, and tool call success rate, rather than only general text quality.
5. Cost and Quota Governance
When several models run side by side, cost differences must be visible. The governance layer can calculate quota consumption as estimated usage × model cost coefficient × task weight, and check the quota before each call. The quota display should help users understand the differences without exposing detailed billing mechanics. Tenants can receive usage dashboards and limit policies. Two principles apply here. Cost estimation is decoupled from routing, so coefficients can be adjusted easily. Quota checks are decoupled from invocation, so auditing stays consistent. The following pseudocode illustrates the idea:
quotaCost = estimateTokens(req) * costFactor(model) * taskWeight(req)if tenant.quotaRemaining < quotaCost:routeToCheaperCandidateOrReject()
Record the gap between estimated cost and actual usage. Use this data to improve the estimation model so that quota policies do not drift.
6. Reliability and Degradation Design
Multi-model integration cannot assume that any model is always available. Set timeouts, retries, circuit breakers, and degradation rules. Retries apply only to idempotent requests or requests that can be safely replayed. Circuit breakers isolate models and tenants separately. Degradation chains are ordered by capability compatibility, so a long-document task is never downgraded to a model with too little context. For tool-calling tasks, check protocol compatibility before degrading. When needed, return a “requires manual confirmation” status instead of failing silently.
7. Observability, Auditing, and Security Boundaries
Observability should cover call chain tracing, model identifiers, prompt versions, usage estimates, latency, error codes, and quota coefficients. Audit logs must be desensitized, and they should keep a record of policy changes. Security boundaries include data classification and grading, tenant isolation, sensitive information filtering, output review, key management, and network boundary control.
For office data, define clearly which content may enter a model, how long it is retained, and who can retrieve it. In multi-model setups, run a data-egress and regional compliance check before routing, so that every candidate model meets data residency requirements.
8. Evaluation, Canary Release, and Rollback
Model integration should be backed by an evaluation set with four categories: general capability, business tasks, adversarial security tests, and cost and latency. Evaluate new models offline first, then roll them out to a small share of traffic and watch quality, failure rate, and cost deviation. Canary rollouts can be segmented by tenant, task type, or user group. Every change to a routing policy must be reversible and recorded with a version. Evaluation is not a one-time task. Update the samples as business tasks change.
9. Compliance Engineering for General-Purpose Embodied Model Filing
Completing the generative AI service filing for a general-purpose embodied model signals that, when embodied AI moves from research to service, teams must prepare several materials. These include model documentation, data source and legality records, safety assessments, content safety and personal information protection measures, and emergency response and log retention plans. A filing is not a technical certification. It is a compliance process that a service must complete before it goes live.
Engineering teams should maintain model cards and data inventories, and keep the version, interface documentation, and launch materials consistent. Model changes need change review and reassessment. Verify the authorization chain for collected and annotated data. Add safety guardrails for model outputs and tool execution. Embodied scenarios also involve perception, decision making, and execution, so extend safety assessment to simulation testing, abnormal shutdown, and human takeover.
10. Implementation Checklist
- Is a unified model adapter with capability declarations in place?
- Are configurable routing policies and a degradation chain available?
- Are costs and quota deviations accounted for by tenant and task?
- Are call chain tracing and desensitized auditing in place?
- Are data classification and regional compliance checks performed?
- Are offline evaluation, canary release, and rollback processes established?
- For embodied models, are the filing materials, safety assessments, and version governance complete as a closed loop?
11. Conclusion
The goal of multi-model integration is not to connect as many models as possible. A unified abstraction lowers integration cost. Policy-based routing balances quality, cost, latency, and compliance. A governance system keeps the platform observable, auditable, and reversible. The filing of a general-purpose embodied model is a reminder that compliance engineering matters as much as model engineering before a service goes live. Managing both under one engineering methodology lets agent capabilities expand without losing control.
