AI Agent Model Selection and Reliability Testing on a RMB 1,000 Budget
Evaluate AI agent models by task success, reliability, and cost per successful task—not token prices alone. This article outlines a reproducible evaluation process for a roughly RMB 1,000 budget, covering tool routing, mandatory risk controls, token efficiency, multimodal testing, and quota management.
AI Agent Model Selection and Reliability Testing on a RMB 1,000 Budget
When deploying AI agents, teams often reduce model selection to a price table and a comparison of parameter counts. Low prices, large models, and generous discounts can seem like sufficient reasons to choose a model. But once an agent handles multiple rounds of tool use, skill selection, high-risk action confirmation, and long task sequences, its usability depends on much more than the price of a single inference.
Task success rate, retry costs, token efficiency, framework reliability, and quota management determine whether the system is practical. The value of an evaluation on a roughly RMB 1,000 budget is not a model ranking. It is a reproducible method that measures capability, reliability, and cost separately.
1. Why a Cheap LLM Is Not Necessarily a Good Agent Model
An agent is not a single question-and-answer interaction. It operates in a loop of planning, tool invocation, result observation, state updates, and error recovery. One task may require several model calls, each carrying system instructions, tool descriptions, conversation history, and structured-output constraints.
Unreliable skill selection or frequent errors in tool arguments lead to retries, human confirmation, and log investigation. Even a model with a low per-call price can therefore have a high total cost of ownership.
Model selection should shift from price per million tokens to total cost per successful task. That cost should include:
- Input and output token charges
- Failed attempts and retries
- Human confirmation
- Monitoring and logging
- Business risk from incorrect actions
Temporary discounts and promotional pricing should be recorded separately rather than treated as the long-term budget baseline.
2. Establish an Evaluation Baseline: Tasks, Metrics, and Budget Accounting
A limited budget calls for stratified sampling, not an open-ended comparison. Divide the task suite into five categories:
- Information extraction and summarization
- Code modification and explanation
- Multi-step tool use
- Image understanding
- Tasks that trigger high-risk actions
For each category, fix the prompt templates, tool descriptions, maximum number of steps, and timeout policy. This keeps comparisons between candidate models consistent.
Recommended metrics include:
- Task success rate
- First-attempt success rate
- Average number of model calls
- Tokens consumed per successful task
- P95 latency
- Skill-selection accuracy
- Confirmation rate for high-risk actions
- Error-recovery rate
- Quota consumption rate
Allocate the budget across three stages:
- Exploratory evaluation: Test multiple models with small samples.
- Regression evaluation: Use a fixed baseline model for ongoing comparisons.
- Limited rollout: Track costs against real traffic and enforce daily, weekly, and monthly quota cutoffs.
Record promotional pricing, subscription allowances, and usage-based charges separately. Otherwise, a temporary price reduction may be mistaken for a sustainable cost advantage.
3. Agent Framework Reliability: Skill Selection and Risk Confirmation
Failed skill selection is a common engineering problem. Causes include mismatches between skill descriptions and user intent, inconsistent argument schemas, insufficient retrieval of candidate skills, long contexts that dilute important constraints, and unclear permission boundaries that encourage the model to guess which actions it can execute.
Repeated prompt changes are not enough. Build a skill registry and validation layer:
- Register skill names, descriptions, argument schemas, and permission levels consistently.
- Retrieve candidate skills and validate arguments before execution.
- Route failures to retries, clarification, or human confirmation instead of letting the model improvise.
High-risk actions must not depend on the model voluntarily asking for permission. The execution layer should enforce a policy engine that classifies tool calls as allow, deny, or ask, supported by idempotency, sandboxing, rollback, and audit logs.
def execute_tool(call, context, policy):skill = registry.resolve(call.name)if not skill:return clarify_or_retry(call)if not schema.validate(call.args, skill.schema):return ask_for_correction(call)decision = policy.evaluate(call, context)if decision == "ask":return request_confirmation(call)if decision == "deny":return refuse_and_log(call)return sandbox.run(skill, call.args)
The key principle is that the execution layer enforces confirmation. The model only proposes candidate calls and cannot bypass the policy.
Logs should capture skill resolution, argument validation, policy decisions, and final outcomes. This makes it possible to distinguish a skill-selection failure from a missing confirmation step. Logging services, monitoring, and alerts can support this observability loop, but the policy and validation logic remain the foundation.
4. Cost and Token Efficiency: Beyond Unit Pricing
For the same task, token consumption can differ severalfold between models. Output length alone rarely explains the difference. System instructions, tool descriptions, history compression, reflection steps, retries, and invalid structured outputs all contribute.
Measure tokens per successful task, not just the length of an individual response. Optimization options include:
- Context trimming and summarized memory
- Truncation of tool results
- Consistent caching
- Structured-output constraints
- Retry limits
- Early stopping
- Model routing by task difficulty: use smaller models for initial handling of simple tasks, then escalate complex tasks
Quota management is equally important. For subscriptions, track quota units, reset cycles, and overage policies. For usage-based billing, configure budget alerts and cutoff controls.
Even short tasks can consume quotas quickly through repeated calls. Account for usage by task category and retain a complete record linking task, model, call count, tokens, and outcome.
The goal of a limited budget is not the lowest token price. It is a model combination with stable total costs at an acceptable success rate.
5. Evaluate Multimodal Image Understanding Separately
A claim that a model “supports image understanding” is not sufficient. Build a dedicated evaluation set covering:
- Screenshot interpretation
- Table recognition
- UI element localization
- Diagnosis from error screenshots
- Questions combining images and text
Measure recognition accuracy, spatial localization, hallucination rate, and multimodal call costs.
Multimodal inputs often increase token consumption and latency. Test reliability on actual business screenshots rather than relying only on clean examples.
6. A Reproducible Evaluation Workflow and Deployment Checklist
Use the following evaluation workflow:
- Define a stratified task suite.
- Fix prompts and tool schemas.
- Run repeated trials and retain complete execution traces.
- Combine automated scoring with manual spot checks.
- Calculate success rates and cost per successful task.
- Compare results against the regression baseline.
Keep the evaluation code model-neutral so candidates can be replaced without changing the test structure:
for task in suite:for model in candidates:run = agent.run(task, model, tools, policy, max_steps=N)log(trace=run.trace, metrics=run.metrics)report(success_rate, token_per_success, p95_latency, ask_rate, skill_miss_rate)
Before deployment, verify that the system meets this checklist:
- Do not select models based only on parameter counts or discounts.
- Enforce confirmation for high-risk actions in the execution layer.
- Maintain a skill registry and validate tool arguments.
- Calculate token costs per successful task.
- Evaluate multimodal capabilities independently.
- Configure quota alerts and cutoff controls.
- Retain complete audit logs.
The most valuable investment on a roughly RMB 1,000 budget is not a one-time model ranking. It is a reproducible evaluation suite, an observable execution workflow, and sustainable budget governance.
