mirascope.core.base.merge_decorators | Mirascope
MirascopeLilypad

mirascope.core.base.merge_decorators

Function merge_decorators

Combines multiple decorators into a single decorator factory.

This function allows you to merge multiple decorators into a single decorator factory. The decorators are applied in the order they are passed to the function. All function metadata (e.g. docstrings, function name) is preserved through the decoration chain.

Parameters

NameTypeDescription
decorator(() => _R) => () => _WRThe base decorator that determines the type signature of the decorated function.
additional_decorators= ()(Callable) => Callable-

Returns

TypeDescription
() => (() => _R) => () => _WRA decorator factory function that applies all decorators in the specified order.