QVeris
GATEWAY VS CAPABILITY LAYER网关与能力层对比

QVeris vs LiteLLM: Gateway or Capability Layer?QVeris vs LiteLLM:模型网关还是能力层?

The useful comparison is not “which one wins.” LiteLLM belongs in the model layer. QVeris belongs in the capability layer. Production agents usually need both: one to reach models, one to reach the real world.这个对比的重点不是“谁赢”。LiteLLM 属于模型层,QVeris 属于能力层。生产级 Agent 通常两者都需要:一个连接模型,一个连接真实世界。

If LiteLLM answers “which model should respond?”, QVeris answers “which verified capability should the agent call?”

如果 LiteLLM 回答的是 “该调用哪个模型?”,QVeris 回答的是 “Agent 该调用哪个已验证能力?”

QVeris capability routing compared with LiteLLM model gateway routing
A model gateway routes inference across model providers; a capability network routes agents to tools, data, APIs, models, and actions.

Why This Comparison Gets Misread

为什么这个对比容易被误读

Most “vs” searches assume two products compete for the same slot. That is not the right mental model here. LiteLLM provides a Python SDK and a self-hostable Proxy Server for model traffic. Its current official documentation covers OpenAI-format access across providers, provider adapters, retry and fallback routing, load balancing, virtual keys, per-project spend tracking, budgets, rate limits, caching, guardrails, and observability callbacks.

大多数 “vs” 搜索都默认两个产品在争同一个位置,但这里不能这样理解。LiteLLM 为模型流量提供 Python SDK 与可自托管 Proxy Server。其当前官方文档覆盖跨供应商的 OpenAI 格式访问、Provider Adapter、重试与 Fallback 路由、负载均衡、Virtual Key、按 Project 统计支出、预算、限流、缓存、Guardrail 与可观测性 Callback。

QVeris starts from a different question. Once an agent has a goal, it may need current market data, a filing, an external calculation, a document parser, search, or another real-world capability. QVeris lets the agent Discover candidates, Inspect their parameters, provider context, success rate, latency and billing information when available, then Call the selected capability and receive structured results.

QVeris 从另一个问题开始:当 Agent 有了目标,它可能需要当前市场数据、财报文件、外部计算、文档解析、搜索或其他真实世界能力。QVeris 让 Agent 先 Discover 候选,再 Inspect 参数、供应商上下文、成功率、延迟与可用计费信息,最后 Call 所选能力并获得结构化结果。

LiteLLM can expose model tools and even route MCP or agent traffic in newer configurations, but that does not erase the architectural distinction. Model inference, capability discovery, external credentials, live-data freshness and action idempotency still require explicit owners. Compare the concrete workload and control boundary instead of treating every feature named “tool” or “gateway” as equivalent.

LiteLLM 在较新的配置中也可以暴露模型工具,甚至路由 MCP 或 Agent 流量,但这并不会消除架构区别。模型推理、能力发现、外部凭证、实时数据新鲜度和动作幂等仍需明确负责人。应比较具体工作负载与控制边界,而不是把所有名为“Tool”或“Gateway”的功能都视为同一种能力。

Two Layers, Two Jobs

两层架构,两种职责

A model gateway and a capability routing layer can sit side by side. Share the workflow trace and tenant context, but keep model credentials, external-service credentials, retry budgets and action IDs separate.

模型网关和能力路由层可以并排存在。双方可共享工作流 Trace 与租户上下文,但模型凭证、外部服务凭证、重试预算与 Action ID 应彼此独立。

Model layer模型层
Agent promptAgent PromptQuestion, task, context, model requirements.问题、任务、上下文与模型要求。
LiteLLMProvider adapters, routing, keys, budgets, fallback.Provider Adapter、路由、Key、预算与 Fallback。
LLM responseLLM 响应Text, reasoning, structured output, or tool intent.文本、推理、结构化输出或工具意图。
Capability layer能力层
Agent intentAgent 意图Need live data, a verified tool, or an external action.需要实时数据、已验证工具或外部动作。
QVerisDiscover, inspect, and call capabilities.Discover、Inspect 并 Call 能力。
Structured result结构化结果Provider evidence and JSON from data, tools, documents, or services.来自数据、工具、文档或服务的 Provider Evidence 与 JSON。

Where Each Product Fits

每个产品适合放在哪里

Name the bottleneck and the owner. If the problem is consistent model access, provider normalization, self-hosted traffic control, or spend policy, start with LiteLLM. If the problem is finding and executing a real-world capability with inspectable schema and evidence, start with QVeris.

先明确瓶颈与负责人。如果问题是统一模型接入、供应商适配、自托管流量控制或支出策略,从 LiteLLM 开始;如果问题是发现并执行带可检查 Schema 与证据的真实世界能力,从 QVeris 开始。

You are standardizing LLM providers你在统一 LLM 供应商LiteLLM is the better fit when applications need one proxy or SDK contract, virtual keys, rate and budget controls, provider routing, fallback, and model-usage observability.当应用需要统一 Proxy 或 SDK 契约、Virtual Key、速率与预算控制、Provider Routing、Fallback 和模型用量可观测性时,LiteLLM 更合适。
Your agent needs live information or action你的 Agent 需要实时信息或动作QVeris is the better fit when the agent must discover candidates, inspect parameters and operating signals, then call live data, tools, documents, or external services with structured results.当 Agent 需要发现候选、检查参数与运营信号,再调用实时数据、工具、文档或外部服务并获得结构化结果时,QVeris 更合适。
You are moving from demo to production你正在从 Demo 走向生产Use both when the workflow needs governed model access and auditable external capability execution. Connect them with one trace, but define separate credentials, retries, permissions, freshness and rollback for each layer.当工作流同时需要治理化模型接入与可审计外部能力执行时,两者一起使用。通过一个 Trace 关联,但分别定义凭证、重试、权限、新鲜度与回滚。

Use LiteLLM when the problem is model access

问题是模型接入时,用 LiteLLM

LiteLLM is the relevant layer when your team needs an OpenAI-format proxy or Python SDK, self-hosted control, provider configuration, virtual keys, budgets, rate limits, load balancing, and model fallback. Verify each endpoint and feature because normalization does not make provider behavior identical.

当团队需要 OpenAI 格式 Proxy 或 Python SDK、自托管控制、Provider 配置、Virtual Key、预算、限流、负载均衡和模型 Fallback 时,LiteLLM 是相关层。仍要逐端点验证功能,因为标准化并不会让供应商行为完全相同。

Use QVeris when the problem is real-world capability

问题是真实世界能力时,用 QVeris

QVeris is the relevant layer when agents need discoverable live data, tools, documents, market intelligence, or external actions with inspectable parameters, provider context, execution evidence and structured outputs.

当 Agent 需要可发现的实时数据、工具、文档、市场情报或外部动作,并要求可检查参数、供应商上下文、执行证据与结构化输出时,QVeris 是相关层。

A Production Agent Workflow

一个生产级 Agent 工作流

A realistic agent does not only produce text. It reasons, asks for data, checks schemas, calls tools, and returns a structured result. That is where the two layers become complementary.

真实的 Agent 不只是生成文本。它会推理、请求数据、检查 schema、调用工具,并返回结构化结果。这时两层会自然互补。

01Reason with a model先用模型推理The agent sends a prompt through LiteLLM to the selected model.Agent 通过 LiteLLM 把 prompt 发送到选定模型。
02Identify missing context识别缺失上下文The model decides it needs live data, a filing, a parser, or another capability.模型判断它需要实时数据、文件、解析器或其他能力。
03Inspect before calling调用前先检查QVeris returns capability schemas, quality signals, cost, and provider context.QVeris 返回能力 schema、质量信号、成本和供应商上下文。
04Return structured output返回结构化输出The capability call returns JSON that the agent can cite, transform, or pass back to the model.能力调用返回 JSON,Agent 可以引用、转换或传回模型。

Decision Map

决策地图

Choose by the system responsibility you need to own. A single workflow can legitimately use both products without asking either one to impersonate the other layer.

应根据需要承担的系统职责选择。同一工作流完全可以同时使用两者,而不必让任一产品冒充另一层。

If your agent needs...如果 Agent 需要……Better layer更合适的层Why原因
Multi-provider model normalization and routing多供应商模型标准化与路由LiteLLMThis is model-provider access, adapter, and traffic control.这属于模型供应商接入、Adapter 与流量控制。
Self-hosted keys, budgets, and model traffic policy自托管 Key、预算与模型流量策略LiteLLMThe Proxy Server runs inside your infrastructure boundary.Proxy Server 可运行在你的基础设施边界内。
Live data, verified tools, or document actions实时数据、已验证工具或文档动作QVerisThis requires capability discovery, inspection, and execution.这需要能力发现、检查与执行。
Production agent workflows using models and external systems同时使用模型与外部系统的生产 Agent 工作流Both两者Models reason; governed capabilities provide current evidence and actions.模型负责推理,治理化能力提供当前证据与动作。

Frequently Asked Questions

常见问题

Is QVeris a LiteLLM alternative?QVeris 是 LiteLLM 替代品吗?

Not directly. LiteLLM is a model gateway. QVeris is a capability routing layer.

不是直接替代。LiteLLM 是模型网关,QVeris 是能力路由层。

Can they work together?它们能一起用吗?

Yes. LiteLLM routes model calls, while QVeris routes calls to tools, data, and services.

可以。LiteLLM 路由模型调用,QVeris 路由工具、数据和服务调用。

Do I still need a model gateway?还需要模型网关吗?

Usually yes, if you care about provider control, fallback, budgets, or model routing.

通常需要,尤其当你关心供应商控制、fallback、预算或模型路由时。

When should I add QVeris?什么时候加 QVeris?

Add it when your agent needs current data, verified execution, or external capabilities.

当 Agent 需要当前数据、已验证执行或外部能力时,就该加 QVeris。

What is the difference between model routing and capability routing?模型路由和能力路由有什么区别?

Model routing chooses an LLM provider. Capability routing chooses the tool, data source, or service an agent should call.

模型路由选择 LLM 供应商;能力路由选择 Agent 应该调用的工具、数据源或服务。

Does QVeris return model responses?QVeris 返回模型回复吗?

QVeris focuses on capability execution and structured results. It is designed to work beside your model layer.

QVeris 关注能力执行和结构化结果,设计上是和模型层并排工作。

What to Validate Before You Combine Them

组合使用前要验证什么

Do not stop at a successful demo. Write down which layer owns each failure and what evidence must survive the request. This prevents a model retry from accidentally repeating an external action, or a capability failure from being hidden inside a generic model error.

不要把 Demo 跑通当作完成。应明确每类故障由哪一层负责,以及请求结束后必须保留哪些证据。这样可以避免模型重试意外重复外部动作,也能防止能力调用失败被笼统的模型错误掩盖。

Separate credentials and permissions分离凭证与权限Keep model-provider keys in LiteLLM and external-service authorization in the capability layer. Grant each workflow only the models, data, and actions it actually needs.模型供应商密钥由 LiteLLM 管理,外部服务授权留在能力层。每个工作流只获得实际需要的模型、数据与动作权限。
Define retry and timeout ownership明确重试与超时归属Use one parent deadline. Limit model retries separately from capability retries, and require idempotency keys before repeating any call that can create, trade, send, or modify.设置一个父截止时间,分别限制模型重试与能力重试;任何可能创建、交易、发送或修改的调用,在重复执行前都必须具备幂等键。
Preserve evidence end to end端到端保留证据Record the selected model route, capability ID, provider, request parameters, freshness timestamp, cost, validation outcome, and final approval state under one trace.在同一个 Trace 下记录所选模型路由、能力 ID、供应商、请求参数、新鲜度时间戳、成本、验证结果与最终审批状态。