langchain_community.llms.fireworks
.conditional_decorator¶
- langchain_community.llms.fireworks.conditional_decorator(condition: bool, decorator: Callable[[Any], Any]) Callable[[Any], Any] [source]¶
Conditionally apply a decorator.
- Parameters
condition – A boolean indicating whether to apply the decorator.
decorator – A decorator function.
- Returns
A decorator function.