Expand description
Media discovery and recommendation domain for EME.
This crate owns provider-independent media concepts, personal and family media profiles, preferences, viewing activity and recommendation context. Provider adapters, persistence and agent-tool integration are layered on top.
EME identity and family membership remain owned by agent-storage and the
host application. Every EME user can have a personal media profile without
joining a family; family-managed profiles remain available for household use.
Structs§
- Content
Restrictions - Restrictions applied before recommendation ranking, not soft preferences.
- External
Id - External catalogue identifier, namespaced by provider.
- Family
Media Preferences - Shared household taste that contributes to every family recommendation.
- Media
Config - Media feature defaults loaded by the host application.
- Media
External Connection Link - Link from a media profile to a credential stored by agent-storage.
- Media
Item - Provider-independent movie or TV catalogue entry.
- Media
Item Id - EME-owned identifier for a media item.
- Media
Profile - A media profile belongs either to an EME user or to a family.
- Media
Profile Id - Identifier for a media profile, independent of EME user identity.
- Media
Rating - Rating recorded by a profile, normalized to a five-point scale.
- Media
Recommendation - One ranked candidate with the evidence used to recommend it.
- Media
Store - SQLite-backed persistence for media data.
- Media
Tool Services - Dependencies shared by the registered media tools.
- Media
Watch Event - A source-attributed viewing event.
- Media
Watchlist Item - A watchlist entry with provider provenance.
- Pending
Trakt Link - Pending profile association carried through a provider OAuth callback.
- Profile
Preferences - User-maintained preferences; synchronized viewing activity is not stored here.
- Provider
Sync State - Provider activity cursor and last successful synchronization timestamp.
- Recommendation
Context - Context is data, not an authorization grant; the server must validate family ownership.
- Recommendation
Criteria - Optional filters supplied for a recommendation request.
- Recommendation
Service - Deterministic discovery, filtering and ranking over the configured providers.
- Recommendation
Weights - Independent weights for shared family preferences and selected profile signals.
- Streaming
Offer - Availability offer returned by a provider adapter.
- Tmdb
Client - Client for TMDB movie and television catalogue endpoints.
- Tmdb
Page - TMDB catalogue page normalized into EME media items.
- Trakt
Authorization - URL and expiry for a pending Trakt consent flow.
- TraktO
Auth Config - OAuth application credentials and Trakt API endpoints.
- TraktO
Auth Service - A Trakt OAuth account-linking and credential service.
- Trakt
Sync Service - Incremental, profile-scoped Trakt data synchronization.
- Trakt
Sync Summary - Summary of data imported by one profile sync.
- Trakt
Token Manager - Cached short-lived access tokens; refresh tokens remain in agent-storage only.
- Watchmode
Client - Watchmode
Source - A Watchmode source/service discovered from the provider’s reference API.
Enums§
- History
Completeness - Completeness is distinct from whether a particular title was watched.
- Media
Config Error - Invalid media configuration.
- Media
Kind - A movie or episodic television series.
- Media
Store Error - Failures returned by the media SQLite store.
- Offer
Type - How a title can be accessed from a streaming provider.
- Recommendation
Error - Streaming
Service - Streaming services that may be configured as household subscriptions.
- Tmdb
Error - Errors returned by the TMDB adapter.
- Trakt
Error - Trakt
Sync Error - Watch
History Source - System that supplied a viewing event or rating.
- Watched
Policy - How a recommendation treats watched titles across its selected participants.
- Watchmode
Error - Errors returned by the Watchmode adapter.
Functions§
- filter_
subscription_ offers - Keep only offers matching the household’s configured subscriptions.
- register_
media_ tools - Register the complete media tool surface in the agent’s executable registry.