Module
module functions and classes
Module
Module (output_schema:pydantic.main.BaseModel, function:Callable[[List[py dantic.main.BaseModel]],List[pydantic.main.BaseModel]])
Module - module base class
Given an input Batch, the Module: 1. gathers inputs to the function 2. executes the function 3. validates the results of the function with output_schema 4. scatters results back into the Batch
| Type | Details | |
|---|---|---|
| output_schema | BaseModel | expected output schema |
| function | typing.Callable[[typing.List[pydantic.main.BaseModel]], typing.List[pydantic.main.BaseModel]] | function to be called |