get_lambda_source#

langchain_core.runnables.utils.get_lambda_source(func: Callable) str | None[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