pankajastro opened a new pull request, #74811:
URL: https://github.com/apache/airflow/pull/74811
`AgentOperator` pushes the transcript to XCom only when `message_history is
not None`.
A single-turn agent that only wants its transcript recorded has to pass
`message_history=[]`,
which is the parameter for seeding a conversation.
This adds `emit_message_history: bool = False`. When `True`, the post-run
transcript is
pushed under the `message_history` key and the run starts with no prior
turns.
`message_history` keeps pushing the transcript as before.
- `emit_message_history` together with `enable_hitl_review` raises, for the
same reason
`message_history` does: the post-review transcript is not recoverable.
- The transcript push now follows `do_xcom_push`, like the other XCom pushes
of the operator.
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes (Claude Code)
Generated-by: Claude Code (Sonnet 5.5) following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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]