poprox_concepts.api.recommendations.v1#
Classes
|
Version 1.1 of the POPROX protocol added the recommender field to RecommendationResponse to allow the platform to track which specific recommendation pipeline generated the returned recommendations |
|
|
|
- class poprox_concepts.api.recommendations.v1.ProtocolModelV1_1(*, protocol_version=ProtocolVersions.VERSION_1_1)#
Bases:
BaseModel
Version 1.1 of the POPROX protocol added the recommender field to RecommendationResponse to allow the platform to track which specific recommendation pipeline generated the returned recommendations
- Parameters:
protocol_version (ProtocolVersions)
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class poprox_concepts.api.recommendations.v1.RecommendationRequestV1(*, protocol_version=ProtocolVersions.VERSION_1_1, todays_articles, past_articles, interest_profile, num_recs)#
Bases:
ProtocolModelV1_1
- Parameters:
protocol_version (ProtocolVersions)
interest_profile (InterestProfile)
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class poprox_concepts.api.recommendations.v1.RecommendationResponseV1(*, protocol_version=ProtocolVersions.VERSION_1_1, recommendations, recommender=None)#
Bases:
ProtocolModelV1_1
- Parameters:
protocol_version (ProtocolVersions)
recommender (RecommenderInfo | None)
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].