|
1 | 1 | # Code Index: plexe |
2 | 2 |
|
3 | | -> Generated on 2026-02-26 19:02:04 |
| 3 | +> Generated on 2026-02-27 14:59:37 |
4 | 4 |
|
5 | 5 | Code structure and public interface documentation for the **plexe** package. |
6 | 6 |
|
@@ -149,11 +149,13 @@ Configuration for plexe. |
149 | 149 | - `validate_model_providers(cls, v: dict[str, str], info) -> dict[str, str]` - Validate that all model provider references exist. |
150 | 150 |
|
151 | 151 | **`Config`** - Configuration for model building workflow. |
| 152 | +- `get_temperature(self, agent_name: str) -> float` - Resolve temperature for a given agent, falling back to default_temperature. |
152 | 153 | - `settings_customise_sources(cls, settings_cls, init_settings, env_settings, dotenv_settings, file_secret_settings)` - Customize settings source priority. |
153 | 154 | - `validate_nn_training_settings(self) -> 'Config'` - Ensure neural network defaults do not exceed the configured cap. |
154 | 155 | - `parse_otel_headers_from_env(self) -> 'Config'` - Parse OTEL_EXPORTER_OTLP_HEADERS (comma-separated key=value pairs). |
155 | 156 |
|
156 | 157 | **Functions:** |
| 158 | +- `detect_installed_frameworks() -> list[str]` - Detect which ML frameworks are installed and importable. |
157 | 159 | - `get_routing_for_model(config: RoutingConfig | None, model_id: str) -> tuple[str | None, dict[str, str]]` - Get routing configuration for a specific model ID. |
158 | 160 | - `setup_logging(config: Config) -> logging.Logger` - Configure logging for the plexe package. |
159 | 161 | - `setup_litellm(config: Config) -> None` - Configure LiteLLM global settings. |
@@ -302,7 +304,7 @@ Amazon S3 storage helper. |
302 | 304 | Universal entry point for plexe. |
303 | 305 |
|
304 | 306 | **Functions:** |
305 | | -- `main(intent: str, data_refs: list[str], integration: WorkflowIntegration | None, spark_mode: str, user_id: str, experiment_id: str, max_iterations: int, work_dir: Path, test_dataset_uri: str | None, enable_final_evaluation: bool, max_epochs: int | None, allowed_model_types: list[str] | None, is_retrain: bool, original_model_uri: str | None, original_experiment_id: str | None, auto_mode: bool, user_feedback: dict | None, enable_otel: bool, otel_endpoint: str | None, otel_headers: dict[str, str] | None, external_storage_uri: str | None, csv_delimiter: str, csv_header: bool)` - Main model building function. |
| 307 | +- `main(intent: str, data_refs: list[str], integration: WorkflowIntegration | None, spark_mode: str, user_id: str, experiment_id: str, max_iterations: int, global_seed: int | None, work_dir: Path, test_dataset_uri: str | None, enable_final_evaluation: bool, max_epochs: int | None, allowed_model_types: list[str] | None, is_retrain: bool, original_model_uri: str | None, original_experiment_id: str | None, auto_mode: bool, user_feedback: dict | None, enable_otel: bool, otel_endpoint: str | None, otel_headers: dict[str, str] | None, external_storage_uri: str | None, csv_delimiter: str, csv_header: bool)` - Main model building function. |
306 | 308 |
|
307 | 309 | --- |
308 | 310 | ## `models.py` |
@@ -367,7 +369,7 @@ Model retraining functionality. |
367 | 369 | PiEvolve-inspired evolutionary search policy with adaptive state analysis. |
368 | 370 |
|
369 | 371 | **`EvolutionarySearchPolicy`** - PiEvolve-inspired probabilistic action selection with adaptive search state analysis. |
370 | | -- `__init__(self, num_drafts: int, debug_prob: float, max_debug_depth: int)` |
| 372 | +- `__init__(self, num_drafts: int, debug_prob: float, max_debug_depth: int, seed: int | None)` |
371 | 373 | - `decide_next_solution(self, journal: SearchJournal, context: BuildContext, iteration: int, max_iterations: int) -> Solution | None` - PiEvolve-style probabilistic action selection based on search state. |
372 | 374 | - `should_stop(self, journal: SearchJournal, iteration: int, max_iterations: int) -> bool` - Enhanced stopping criteria with intelligent early stopping. |
373 | 375 |
|
@@ -417,7 +419,7 @@ Search policy abstract base class. |
417 | 419 | Tree-search policy inspired by AIDE. |
418 | 420 |
|
419 | 421 | **`TreeSearchPolicy`** - AIDE-inspired tree-search with draft/debug/improve stages. |
420 | | -- `__init__(self, num_drafts: int, debug_prob: float, max_debug_depth: int)` |
| 422 | +- `__init__(self, num_drafts: int, debug_prob: float, max_debug_depth: int, seed: int | None)` |
421 | 423 | - `decide_next_solution(self, journal: SearchJournal, context: BuildContext, iteration: int, max_iterations: int) -> Solution | None` - Decide which solution node to expand next. |
422 | 424 | - `should_stop(self, journal: SearchJournal, iteration: int, max_iterations: int) -> bool` - Decide if search should terminate early. |
423 | 425 |
|
|
0 commit comments