Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/a2a/client/transports/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ async def get_task(
) -> Task:
"""Retrieves the current state and history of a specific task."""
task = await self.stub.GetTask(
a2a_pb2.GetTaskRequest(name=f'tasks/{request.id}')
a2a_pb2.GetTaskRequest(
name=f'tasks/{request.id}',
history_length=request.history_length,
)
)
Comment thread
kthota-g marked this conversation as resolved.
return proto_utils.FromProto.task(task)

Expand Down
Loading