airflow.providers.common.ai.utils.prompt

Functions

call_arguments(python_callable, op_args, op_kwargs)

Return the arguments a decorated function was called with, by parameter name.

describe_prompt(prompt)

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 }} for summarize("...") as well as for summarize(text="..."). Parameters left at their default are not: a default such as ti=None must not shadow the ti of the task context.

airflow.providers.common.ai.utils.prompt.describe_prompt(prompt)[source]

Was this entry helpful?