conditional_decorator#

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

Define conditional decorator.

Parameters:
  • condition (bool) – The condition.

  • decorator (Callable[[Any], Any]) – The decorator.

Returns:

The decorated function.

Return type:

Callable[[Any], Any]