userId

abstract val userId: String(source)

The unique identifier for the user associated with this container instance.

This property provides access to the user ID that was specified during container creation and determines the scope of all data isolation and learning operations. The user ID is immutable after container creation and serves as the primary key for all user-scoped operations including data storage, state persistence, and privacy controls.

Usage considerations:

  • Used as the primary key for data storage and retrieval operations

  • Determines data isolation boundaries between different users

  • Required for all persistence operations and state management

  • Should remain consistent across application sessions for proper continuity

Privacy and security implications:

  • All learning and prediction operations are scoped to this specific user

  • Data isolation ensures no cross-contamination between different user accounts

  • Privacy settings and consent management are applied per user ID

  • Audit trails and compliance reporting are organized by user identifier