now.executor.gateway.bff.app.v1.models.shared module#

class now.executor.gateway.bff.app.v1.models.shared.BaseRequestModel(**data)[source]#

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

jwt: Optional[Dict[str, Any]]#
api_key: Optional[str]#
class Config[source]#

Bases: object

allow_mutation = False#
case_sensitive = False#
arbitrary_types_allowed = True#
class now.executor.gateway.bff.app.v1.models.shared.ModalityModel(**data)[source]#

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

uri: Optional[str]#
text: Optional[str]#
blob: Optional[str]#
classmethod validate_only_one_exists(values)[source]#
property content#
to_html(title='', disable_to_datauri=False)[source]#

Converts the ModalityModel to HTML.

Parameters
  • title (str) – Title of the figure (field name usually).

  • disable_to_datauri (bool) – If True, the image is not converted to datauri.

Return type

str