airflow.providers.common.ai.utils.prompt¶
Functions¶
|
Return the arguments a decorated function was called with, by parameter name. |
|
Module Contents¶
- airflow.providers.common.ai.utils.prompt.call_arguments(python_callable, op_args, op_kwargs)[source]¶
Return the arguments a decorated function was called with, by parameter name.
Positional arguments are included, so a returned prompt can reference
{{ text }}forsummarize("...")as well as forsummarize(text="..."). Parameters left at their default are not: a default such asti=Nonemust not shadow thetiof the task context.