pierrejeambrun commented on code in PR #74272:
URL: https://github.com/apache/airflow/pull/74272#discussion_r4195220389
##########
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:
I thought about this yes, we can do that. I didn't because "decision" is
just "decision", but we can to it with models to avoid collisions
--
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]