We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66073cf commit d7fb690Copy full SHA for d7fb690
1 file changed
src/a2a/utils/task.py
@@ -96,7 +96,6 @@ def apply_history_length(task: Task, history_length: int | None) -> Task:
96
task_copy = Task()
97
task_copy.CopyFrom(task)
98
# Clear and re-add history items
99
- del task_copy.history[:]
100
- task_copy.history.extend(limited_history)
+ task_copy.history[:] = limited_history
101
return task_copy
102
return task
0 commit comments