alab_management.experiment_view.experiment module#

Define the format of experiment request.

class InputExperiment(**data)[source]#

Bases: BaseModel

This is the format that user should follow to write to experiment database.

metadata: dict[str, Any]#
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'metadata': FieldInfo(annotation=dict[str, Any], required=True), 'name': FieldInfo(annotation=str, required=True, metadata=[_PydanticGeneralMetadata(pattern='^[^$.]+$')]), 'samples': FieldInfo(annotation=list[_Sample], required=True), 'tags': FieldInfo(annotation=list[str], required=True), 'tasks': FieldInfo(annotation=list[_Task], required=True)}#

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

classmethod must_be_bsonable(v)[source]#

If v is not None, we must confirm that it can be encoded to BSON.

name: str#
samples: list[_Sample]#
tags: list[str]#
tasks: list[_Task]#