Foundation Models in the Agent Era: Capability Evolution and Implementation Practices
As the AI paradigm shifts from single-turn Q&A to autonomous agents, the requirements for foundation models have fundamentally changed. This article explores the new demands placed on foundation models, dissects the five critical capability dimensions stressed in the Agent era, and provides practical guidance on evaluating models, building cloud reference architectures, optimizing costs with tiered routing, and implementing robust governance frameworks.
I. The Starting Point: New Requirements for Foundation Models in the Agent Era
Over the past two years, the mainstream usage of large models has been “one question, one answer”: inputting a prompt, outputting text, and destroying the state once the session ends. The Agent paradigm changes this premise—the model is no longer just an answerer but an executor. It needs to maintain goal alignment without drift in multi-turn, long-horizon loops with side effects, which directly rewrites the evaluation criteria for foundation models.
The changes on the demand side can be summarized into three aspects:
- From single-step to long-horizon: Tasks are broken down into dozens or even hundreds of steps. The model must maintain goal consistency as the context continuously grows and self-correct upon failure, rather than repeating the same erroneous action.
- From text to action: Model outputs are no longer natural language for humans to read, but structured instructions directly consumed by parsers, compilers, or toolchains. An extra quotation mark or a missing field can break the entire chain.
- From closed to open: In real-world environments, toolsets are dynamic, permissions are tiered, and return results are noisy. The model needs an inclination to “seek verification when uncertain” rather than confidently fabricating a non-existent interface.
II. Capability Breakdown: Five Dimensions Repeatedly Stressed in the Agent Era
1. Instruction Following and Structured Output Stability
Agent frameworks generally rely on JSON, function calling protocols, or custom DSLs to pass actions. The evaluation focus is not “can it output JSON,” but whether the schema compliance rate is stable under conditions of long context, multi-turn error correction, and noisy inputs. In engineering, this is usually backed up by constrained decoding or output validation retries.
2. Parameter Grounding in Tool Calls
The model must correctly extract parameters from tool descriptions and user intent, including type conversion, enum value selection, and required field completion. A common failure mode is “parameters look reasonable but are semantically incorrect,” such as filling a user’s nickname into a phone number field. Such errors can only be exposed through custom evaluation sets.
3. Long Context and Memory Management
A larger context window does not equate to effective utilization. The real capability is locating key evidence amidst noise, and performing summary compression when exceeding the window without losing constraints. The standard engineering approach is hierarchical memory: short-term stores raw trajectories, mid-term stores structured summaries, and long-term stores vector retrieval results.
4. Multimodal and Voice Loop
When an Agent needs to interact with the physical world or real humans, a pure text foundation is insufficient. Omni-modal input allows the model to directly understand images and audio signals; voice synthesis capabilities determine interaction latency and human-likeness. The key metrics here are end-to-end latency and interruption response, rather than single-point audio quality.
5. Refusal and Risk Boundaries
High autonomy inevitably amplifies risk. Foundation models need the ability to clearly express capability boundaries: requesting confirmation when uncertain, and proactively escalating to manual approval when encountering high-impact operations (deletion, payment, external publishing).
III. Interpreting Anonymous Rollouts and Third-Party Leaderboards
A common release strategy in the industry is to first roll out anonymously on public inference platforms, using real traffic volume for stress and reputation validation before officially disclosing it. This approach has clear engineering value, but it also brings interpretation traps.
- Leaderboards are limited samples: The task distribution of public evaluations almost never matches your business distribution. A high ranking only indicates that it is not weak on general tasks.
- Brand aggregation criteria change rankings: Ranking by “model” versus aggregating by “vendor” are two different statistical methods. The criteria must be specified when citing.
- Data contamination risks: When evaluation questions enter public corpora, scores will systematically inflate.
- Call volume does not equal quality: The call volume of an anonymous model is heavily influenced by pricing, rate limiting strategies, and trending topics.
The conclusion is: Leaderboards are for initial screening; custom evaluation sets are for decision-making. Below is a minimal viable tool calling evaluation skeleton, relying only on the standard library, making it easy to integrate into CI:
import json, redef validate_tool_call(raw: str, schema: dict) -> tuple[bool, str]:"""Validate whether the model output is a tool call conforming to the schema"""m = re.search(r"\{.*\}", raw, re.S)if not m:return False, "no_json_object"try:payload = json.loads(m.group(0))except json.JSONDecodeError as e:return False, f"invalid_json:{e}"for field, spec in schema.items():if spec.get("required") and field not in payload:return False, f"missing:{field}"if field in payload and not isinstance(payload[field], spec["type"]):return False, f"type_mismatch:{field}"return True, "ok"# Each case in the eval set contains: context, expected tool, schema, reference parametersdef run_eval(cases, model_call):passed, failures = 0, []for c in cases:raw = model_call(c["context"])ok, reason = validate_tool_call(raw, c["schema"])if ok and c["tool"] in raw:passed += 1else:failures.append({"id": c["id"], "reason": reason})return {"pass_rate": passed / len(cases), "failures": failures}
It is recommended to keep the evaluation set size between 200 and 500 cases, covering four types of scenarios: normal paths, missing parameters, ambiguity, and privilege escalation. Separate pass_rate from end-to-end task success rate in statistics—the former is a model metric, while the latter is the business metric.
IV. Cloud Reference Architecture: Engineering Model Capabilities
Under the general capability system of cloud platforms like Baidu AI Cloud, a deployable Agent service typically consists of the following general categories, without involving any proprietary interfaces:
- Container Platform: Hosts the stateless inference gateway and Agent orchestration processes, scaling elastically based on queue depth.
- Object Storage: Stores versioned snapshots of conversation trajectories, evaluation sets, and model artifacts.
- Message Queue: Decouples long-running tasks and asynchronously handles time-consuming tool calls to prevent request timeout avalanches.
- Vector Retrieval Service: Implements long-term memory and knowledge base recall.
- Log Service + Monitoring & Alerting: Establishes dashboards and threshold alerts for schema compliance rate, tool failure rate, and end-to-end latency.
The key design principle is decoupling orchestration from models: placing the tool registry, permission policies, and retry strategies in the orchestration layer, while the model only makes decisions and generates. This way, replacing the foundation model does not require rewriting business logic.
V. Cost and Performance: Tiered Routing is Mandatory
Exclusively using the most powerful model is economically unsustainable. A mature approach is a three-tier routing strategy:
- Intent classification and format rewriting are handled by small models or rules.
- Routine tool calls are handled by medium-sized models.
- Upgrading to flagship models is reserved only for long-horizon planning, complex coding, and multimodal understanding.
Combined with prefix caching, result caching, and batch processing, unit task costs can typically be significantly reduced. Note that the cache key must include the tool version and permission context; otherwise, it will introduce severe privilege escalation vulnerabilities.
VI. Governance Checklist
- Perform server-side secondary authentication for all tool calls; do not rely on model self-discipline.
- Enforce manual confirmation and logging for high-impact actions.
- Perform unified schema validation on structured data outputs before database insertion.
- Establish a red-teaming set covering prompt injection, tool abuse, and data exfiltration.
- Maintain a bidirectional traceability relationship between model versions and prompt versions.
VII. Conclusion
The competitive focus in the Agent era is shifting from “single-point evaluation scores” to the comprehensive engineering capability of “long-horizon task success rate + unit cost + controllability.” The iteration speed of foundation models is fast, but the compounding effects of evaluation methods, orchestration architectures, and governance systems are more enduring. Establishing the evaluation set and observability first before discussing model selection is the lowest-risk path.
