trinity.common.workflows.customized_math_workflows module#
We include the customized math workflows in this file.
- class trinity.common.workflows.customized_math_workflows.MathBoxedWorkflow(*, task: Task, model: ModelWrapper, auxiliary_models: List[ModelWrapper] | None = None)[源代码]#
-
A workflow for math tasks that give answers in boxed format.
- run() List[Experience][源代码]#
Run workflow and return a list of experiences.
- class trinity.common.workflows.customized_math_workflows.AsyncMathBoxedWorkflow(*, task: Task, model: ModelWrapper, auxiliary_models: List[ModelWrapper] | None = None)[源代码]#
-
- is_async: bool = True#
- async run_async() List[Experience][源代码]#
Run workflow in async and return a list of experiences.