fabricatio_core.capabilities.propose
A module for the task capabilities of the Fabricatio library.
Classes
A class that proposes an Obj based on a prompt. |
Module Contents
- class fabricatio_core.capabilities.propose.Propose(/, **data: Any)[source]
Bases:
fabricatio_core.capabilities.usages.UseLLM,abc.ABCA class that proposes an Obj based on a prompt.
- async propose[M: fabricatio_core.models.generic.ProposedAble](cls: Type[M], prompt: List[str], **kwargs: Unpack[fabricatio_core.models.kwargs_types.ValidateKwargs[None]]) List[M | None][source]
- async propose(cls: Type[M], prompt: List[str], **kwargs: Unpack[fabricatio_core.models.kwargs_types.ValidateKwargs[M]]) List[M]
- async propose(cls: Type[M], prompt: str, **kwargs: Unpack[fabricatio_core.models.kwargs_types.ValidateKwargs[None]]) M | None
- async propose(cls: Type[M], prompt: str, **kwargs: Unpack[fabricatio_core.models.kwargs_types.ValidateKwargs[M]]) M
Asynchronously proposes a task based on a given prompt and parameters.
- Parameters:
cls – The class type of the task to be proposed.
prompt – The prompt text for proposing a task, which is a string that must be provided.
**kwargs – The keyword arguments for the LLM (Large Language Model) usage.
- Returns:
A Task object based on the proposal result.