Convert the task to a workflow. Args: model (ModelWrapper): The rollout model for the workflow. auxiliary_models (List[ModelWrapper]): The auxiliary model wrappers. Workflows can access both the ModelWrapper and OpenAI client via self.
(
self,
model: ModelWrapper,
auxiliary_models: Optional[List[ModelWrapper]] = None,
)
| 38 | index: dict = field(default_factory=dict) |
| 39 | |
| 40 | def to_workflow( |
| 41 | self, |
| 42 | model: ModelWrapper, |
| 43 | auxiliary_models: Optional[List[ModelWrapper]] = None, |
| 44 | ) -> Workflow: |
| 45 | """Convert the task to a workflow. |
| 46 | |
| 47 | Args: |
| 48 | model (ModelWrapper): The rollout model for the workflow. |
| 49 | auxiliary_models (List[ModelWrapper]): The auxiliary model wrappers. |
| 50 | Workflows can access both the ModelWrapper and OpenAI client via |
| 51 | self.auxiliary_model_wrappers and self.auxiliary_models respectively. |
| 52 | |
| 53 | Returns: |
| 54 | Workflow: The generated workflow object. |
| 55 | """ |
| 56 | return self.workflow( |
| 57 | model=model, |
| 58 | task=self, |
| 59 | auxiliary_models=auxiliary_models, |
| 60 | ) |
| 61 | |
| 62 | # Deprecated property, will be removed in the future |
| 63 | @property |
no outgoing calls