Skip to content

Commit 9c2c4f9

Browse files
author
asechi_tadaki
committed
fix(rest): send historyLength=0 when history_length=0 (avoid falsy omission)
1 parent 4a4b4a9 commit 9c2c4f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/a2a/client/transports/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ async def get_task(
214214
response_data = await self._send_get_request(
215215
f'/v1/tasks/{request.id}',
216216
{'historyLength': str(request.history_length)}
217-
if request.history_length
217+
if request.history_length is not None
218218
else {},
219219
modified_kwargs,
220220
)

0 commit comments

Comments
 (0)