本頁面由機器翻譯。閱讀英文原文。

Feature

core/response-validation

Checks a model's reply passing through an AI gateway against a JSON Schema before the reply reaches the caller, so an application expecting structured output is not left parsing whatever came back. schema carries the schema itself, written as a mapping, and a reply that does not match it is refused rather than passed on. invert turns the check around and refuses a reply that does match. The schema is the attachment's, the same for every request the gateway serves. Checking a reply against a schema the caller sends with its own request is a different control, and not this one. The developer attaches it in the Aggregate, writing schema and invert in values; it takes no infra. No gateway in the standard library realizes it: an attachment halts the build, naming why on core/gateway/agentgateway, core/gateway/higress and core/gateway/traefik-hub and naming the type on any other gateway, and renders nothing.

出處

官方由本目錄認可為官方發布者的簽署身分所簽署。
內容摘要
sha256:0782fd5f734bff3d5d2ca90f1d7a417fae4c87a89267ca14c69e8111fea4b5dc
發布時間
2026-11-10T10:17:23Z
簽署身分
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

簽章

  • 官方application/vnd.dev.sigstore.bundle.v0.3+json

    https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

    sha256:c3062ebf48d1bcc620f48d1b5408cebf2aa69dacf5a07926a5b3e73f6071a75a

此版本的參照

oci://hub.aggrega.ai/feature/core/response-validation:1.0.0
適用於
gateway.aggrega.ai/intelligence=semantic
與其衝突
—

開發者參數

開發者附加此功能時設定的值。

擴充 BaseComponents#/schemas/BaseFeatureParameter

名稱型別預設必填描述
schemaobject (open)—是The JSON Schema a reply must match, written as a mapping. A reply that does not match it is refused before it reaches the caller.
invertbooleanfalse否Whether the check is turned around. Off, the default, a reply that does not match schema is refused. On, a reply that matches schema is refused, and one that does not is passed on.

輸出契約

此功能向使用端發布的值。

未宣告任何輸出值。

註記

未宣告任何註記。

關係

與其他已發布實體之間具型別的邊。沒有已發布目標的參照,會渲染為中斷的邊,而不是連結。

Feature 概念參考

Aggrega 目錄:元件、功能、配方,以及負責渲染它們的外掛程式的開放索引。

以共用的 Aggrega 設計系統建置。

隱私權