langchain_core.runnables.utils.get_lambda_source¶

langchain_core.runnables.utils.get_lambda_source(func: Callable) Optional[str][source]¶

Get the source code of a lambda function.

Parameters

func (Callable) – a callable that can be a lambda function

Returns

the source code of the lambda function

Return type

str