vipr_api.web.routers.reflectorch package¶
Submodules¶
vipr_api.web.routers.reflectorch.config module¶
Reflectorch Configuration Router.
This router handles all model configuration and validation endpoints: - /models - List available models - /{model}/parameters - Get model parameters - /validate-config - Validate configuration - /standard-config - Generate standard configuration
- async vipr_api.web.routers.reflectorch.config.complete_config_with_defaults(config_dict: Dict[str, Any]) tuple[Dict[str, Any], Dict[str, Any]]¶
Complete configuration by adding missing parameters with their default values.
- Returns:
(completed_config, added_parameters)
- Return type:
- async vipr_api.web.routers.reflectorch.config.get_available_models() list[AvailableModel]¶
Get available models for reflectometry analysis.
- Returns:
List of available models with their configurations
- Return type:
List[AvailableModel]
- Raises:
HTTPException – If the configuration directory is not found
- async vipr_api.web.routers.reflectorch.config.get_parameters(model: str)¶
Get parameters for a specific reflectometry model.
- Parameters:
model (str) – Name of the model
- Returns:
Parameters for the model
- Return type:
- Raises:
HTTPException – If the model configuration is not found
- async vipr_api.web.routers.reflectorch.config.get_standard_config() VIPRInference¶
Generate standard Reflectorch configuration.
This endpoint migrated from vipr-core to vipr-framework. It calls the VIPR runner to generate standard configuration.
- Returns:
Dict containing standard VIPR configuration
- Raises:
HTTPException – If config generation fails
- async vipr_api.web.routers.reflectorch.config.validate_config(config: VIPRConfigWithStreaming) Dict[str, Any]¶
Validate configuration without running prediction. Also completes configuration by adding missing parameters with defaults.
Uses the same security validation as the /run endpoint.
Module contents¶
Reflectorch Router Module for VIPR Framework.
This package contains reflectorch-specific (domain-specific) API routers: - config.py: Model configuration and validation endpoints
Generic inference endpoints (run, progress, cancel, health) have been moved to the inference router at /api/inference/* for domain-agnostic use.