Skip to content

Commit 82ced2f

Browse files
committed
fix: Pass message_length param. Addresses a2aproject/A2A#861
1 parent dec4b48 commit 82ced2f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/a2a/client/transports/grpc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ async def get_task(
138138
) -> Task:
139139
"""Retrieves the current state and history of a specific task."""
140140
task = await self.stub.GetTask(
141-
a2a_pb2.GetTaskRequest(name=f'tasks/{request.id}')
141+
a2a_pb2.GetTaskRequest(
142+
name=f'tasks/{request.id}',
143+
history_length=request.history_length,
144+
)
142145
)
143146
return proto_utils.FromProto.task(task)
144147

0 commit comments

Comments
 (0)