test: accept the widened run_conversation kwargs in the queued-followup agent doubles
main now passes persist_user_platform_id (and friends) into run_conversation; the fakes only need the message, so swallow the rest with **_kwargs instead of pinning today's signature.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user