kaxil commented on code in PR #74272:
URL: https://github.com/apache/airflow/pull/74272#discussion_r4194849275
##########
providers/common/ai/src/airflow/providers/common/ai/utils/logging.py:
##########
@@ -94,6 +94,11 @@ def _log_cache_and_cost(logger: Logger | logging.Logger,
usage: RunUsage) -> Non
logger.info("LLM run cost: $%s (USD, best-effort)", format(usage.cost,
"f"))
+# XCom key the LLM and agent operators publish the run's resolved model name
under, so downstream
+# tasks and the UI can read which model actually answered without parsing the
decision record.
+MODEL_NAME_XCOM_KEY = "model_name"
Review Comment:
Should we make this ``__AIRFLOW__COMMON_AI_MODEL_NAME__`` or something
similar -- so they are 0 chances of users adding such XCom too?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]