Skip to content

featurebyte.Context.create

create(
name: str,
primary_entity: List[str],
description: Optional[str]=None
) -> Context

Description

Create a new Context.

Parameters

  • name: str
    Name of the UseCase.

  • primary_entity: List[str]
    List of entity names.

  • description: Optional[str]
    Description of the Context.

Returns

  • Context
    The newly created Context.

Examples

>>> fb.Context.create(
...     name="context_1",
...     primary_entity=primary_entity,
... )
>>> context_1 = catalog.get_context("context_1")