From 9c2c4f9586650e5bcc77967a617ca82e708c92d5 Mon Sep 17 00:00:00 2001 From: asechi_tadaki Date: Mon, 29 Sep 2025 19:39:52 +0900 Subject: [PATCH] fix(rest): send historyLength=0 when history_length=0 (avoid falsy omission) --- src/a2a/client/transports/rest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/a2a/client/transports/rest.py b/src/a2a/client/transports/rest.py index 082c21cc8..eef7b0f2e 100644 --- a/src/a2a/client/transports/rest.py +++ b/src/a2a/client/transports/rest.py @@ -214,7 +214,7 @@ async def get_task( response_data = await self._send_get_request( f'/v1/tasks/{request.id}', {'historyLength': str(request.history_length)} - if request.history_length + if request.history_length is not None else {}, modified_kwargs, )