We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b22eeb2 commit fff4d34Copy full SHA for fff4d34
src/agents/handoffs/history.py
@@ -124,7 +124,12 @@ def _build_summary_message(transcript: list[TResponseInputItem]) -> TResponseInp
124
summary_lines = ["(no previous turns recorded)"]
125
126
start_marker, end_marker = get_conversation_history_wrappers()
127
- content_lines = [start_marker, *summary_lines, end_marker]
+ content_lines = [
128
+ "For context, here is the conversation so far between the user and the previous agent:",
129
+ start_marker,
130
+ *summary_lines,
131
+ end_marker,
132
+ ]
133
content = "\n".join(content_lines)
134
assistant_message: dict[str, Any] = {
135
"role": "assistant",
0 commit comments