xor_args#
- langchain_core.utils.utils.xor_args(*arg_groups: Tuple[str, ...]) Callable [source]#
Validate specified keyword args are mutually exclusive.”
- Parameters:
*arg_groups (Tuple[str, ...]) – Groups of mutually exclusive keyword args.
- Returns:
- Decorator that validates the specified keyword args
are mutually exclusive
- Return type:
Callable
- Raises:
ValueError – If more than one arg in a group is defined.