Skip to main content
GET
/
knowledge_bases
/
middleware
/
parameters_schema
JSON Schema for the KB middleware's tunable parameters
curl --request GET \
  --url https://api.example.com/knowledge_bases/middleware/parameters_schema \
  --header 'x-user-id: <x-user-id>'
{
  "parameter_schema": {}
}

Headers

x-user-id
string
required

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.

parameter_schema
Parameter Schema · object
required

JSON Schema produced by RAGMiddleware.Parametersmodel_json_schema(). Shaped identically to the parameter_schema field on ModelCard.