conditional_decorator#

langchain_community.llms.fireworks.conditional_decorator(condition: bool, decorator: Callable[[Any], Any]) Callable[[Any], Any][source]#

Conditionally apply a decorator.

Parameters:
  • condition (bool) – A boolean indicating whether to apply the decorator.

  • decorator (Callable[[Any], Any]) – A decorator function.

Returns:

A decorator function.

Return type:

Callable[[Any], Any]