Skip to content

featurebyte.Context.get_by_id

get_by_id(
id: ObjectId
) -> Context

Description

Returns a Context object by its unique identifier (ID).

Parameters

  • id: ObjectId
    Context unique identifier ID.

Returns

  • Context
    Context object.

Examples

Get a Context object that is already saved.

>>> fb.Context.get_by_id(<context_id>)