Skip to content

Conversation

@knutdrand
Copy link

Summary

  • Add RunInfo class containing runtime information passed from CHAP to models (prediction_length, additional_continuous_covariates, future_covariate_origin)
  • Update all model runner implementations (BaseModelRunner, FunctionalModelRunner, ShellModelRunner) to accept and pass run_info parameter
  • Update TrainRequest and PredictRequest schemas to include run_info field

Test plan

  • All 636 tests pass
  • mypy type checking passes
  • Examples updated to use new signatures

This change aligns chapkit with the model contract defined in chap_core, enabling models to receive runtime configuration separately from user-defined model configuration.

Add RunInfo class containing runtime information passed from CHAP to models:
- prediction_length: Number of periods to predict
- additional_continuous_covariates: User-specified additional covariates
- future_covariate_origin: Origin/source of future covariate forecasts

Update all model runner implementations (BaseModelRunner, FunctionalModelRunner,
ShellModelRunner) to accept and pass run_info parameter. Update TrainRequest
and PredictRequest schemas to include run_info field.

This change aligns chapkit with the model contract defined in chap_core,
enabling models to receive runtime configuration separately from user-defined
model configuration.
@codecov
Copy link

codecov bot commented Dec 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Add PeriodType StrEnum (any, week, month, year) to specify which time
period types a model supports. MLServiceInfo now exposes this field
in the /api/v1/info endpoint for CHAP to read model capabilities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant