JSON Schema for the KB middleware's tunable parameters
Return the parameter schema for
:class:agentscope.middleware.RAGMiddleware.
The schema is shaped like every other parameter_schema served
by this service — title / description / default / enum / minimum
/ maximum — so the front-end can render the session-level KB
attachment form with the same schema-driven component used for
model parameters.
Args:
_ (str):
Injected authenticated user ID; only used to gate the
endpoint behind authentication.
Returns:
KbMiddlewareParametersSchemaResponse:
The JSON Schema describing the middleware’s
user-tunable parameters.
Headers
Caller's user ID. Temporary header-based identity; will be replaced by JWT auth.
Response
Successful Response
Response body exposing the KB middleware's parameters schema.
The schema is derived from
:class:agentscope.middleware.RAGMiddleware.Parameters
via model_json_schema() so the front-end can render the
session-level KB attachment form with the same schema-driven
component used for model parameters.
JSON Schema produced by RAGMiddleware.Parametersmodel_json_schema(). Shaped identically to the parameter_schema field on ModelCard.