File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/a2a/server/request_handlers
tests/server/request_handlers Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -346,7 +346,10 @@ async def push_notification_callback() -> None:
346346
347347 if isinstance (result , Task ):
348348 self ._validate_task_id_match (task_id , result .id )
349- if params .configuration and params .configuration .history_length is not None :
349+ if (
350+ params .configuration
351+ and params .configuration .history_length is not None
352+ ):
350353 result = apply_history_length (
351354 result , params .configuration .history_length
352355 )
Original file line number Diff line number Diff line change @@ -874,6 +874,7 @@ async def test_on_message_send_limit_history():
874874 assert task is not None
875875 assert task .history is not None and len (task .history ) > 0
876876
877+
877878@pytest .mark .asyncio
878879async def test_on_message_send_limit_history_non_as_no_limit ():
879880 task_store = InMemoryTaskStore ()
@@ -893,7 +894,7 @@ async def test_on_message_send_limit_history_non_as_no_limit():
893894 configuration = MessageSendConfiguration (
894895 blocking = True ,
895896 accepted_output_modes = ['text/plain' ],
896- history_length = None
897+ history_length = None ,
897898 ),
898899 )
899900
You can’t perform that action at this time.
0 commit comments