pierrejeambrun opened a new pull request, #74272:
URL: https://github.com/apache/airflow/pull/74272

   The model that actually answered a run was only reachable buried inside the 
`decision` XCom record (for `LLMOperator`) or the task logs. This publishes it 
under a dedicated, stable `model_name` XCom key from both the LLM and the agent 
operator, so downstream tasks — and the UI — can read which model ran without 
parsing the decision record.
   
   - `LLMOperator` (and `LLMBranchOperator`, by inheritance): push the resolved 
`response.model_name` under `model_name`.
   - `AgentOperator`: push it in `_emit_run_metadata`, alongside the existing 
`run_id` / `usage` run-metadata XComs.
   
   The resolved name is the model that actually responded (e.g. 
`claude-sonnet-4-5-20250929`), which can differ from the configured `model_id` 
when the model comes from the connection's `extra.model` or a fallback.
   
   First of a two-PR series — the follow-up adds a UI panel that surfaces this 
as a first-class "Model" badge on the task-instance view.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 4.8)
   
   Generated-by: Claude Code (Opus 4.8) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


-- 
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]

Reply via email to