Skip to content

The agent that grows with you

test: accept the widened run_conversation kwargs in the queued-followup agent doubles

teknium1876bdc857d18
diff --git a/tests/gateway/test_queued_followup_processing_hooks.py b/tests/gateway/test_queued_followup_processing_hooks.py
index 1356fd808bf..f4c07cbbc8e 100644
--- a/tests/gateway/test_queued_followup_processing_hooks.py
+++ b/tests/gateway/test_queued_followup_processing_hooks.py
@@ -67,7 +67,7 @@ class _TwoTurnAgent:
def __init__(self, **kwargs):
self.tools = []
- def run_conversation(self, message, conversation_history=None, task_id=None):
+ def run_conversation(self, message, conversation_history=None, task_id=None, **_kwargs):
type(self).calls.append(message)
return {
"final_response": f"done-{len(type(self).calls)}",
@@ -82,7 +82,7 @@ class _RaisingSecondTurnAgent:
def __init__(self, **kwargs):
self.tools = []
- def run_conversation(self, message, conversation_history=None, task_id=None):
+ def run_conversation(self, message, conversation_history=None, task_id=None, **_kwargs):
type(self).calls.append(message)
if len(type(self).calls) >= 2:
raise RuntimeError("boom in the queued follow-up turn")