Lee-W commented on code in PR #74625:
URL: https://github.com/apache/airflow/pull/74625#discussion_r4262270207
##########
providers/common/ai/docs/message_history.rst:
##########
@@ -58,3 +58,30 @@ back unbounded.
operator raises at construction. The post-review (human-approved)
transcript
is not recoverable today, so emitting the pre-review transcript would
silently drop the reviewed turns.
+
+What this is, and what it is not
+--------------------------------
+
+``message_history`` is a hand-off of one conversation transcript from one run
to
+the next. When you pass ``message_history``, the operator reads that
transcript,
+and after the run it writes the full updated transcript to XCom under
+``message_history`` as pydantic-ai's JSON message format. Where that transcript
+lives between runs and which session key it is stored under are decisions for
+your Dag. The operator does not trim the transcript.
+
+Use it to resume a multi-turn conversation across task runs. If you need an
+agent to recall facts across unrelated sessions, note that the operator has no
+built-in cross-session memory.
Review Comment:
Adds what to do instead: store the facts, load them in an upstream task (the
same load, run, store pattern), and put them in the prompt or instructions.
--
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]