We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cf9bae commit fc8df2dCopy full SHA for fc8df2d
src/a2a/utils/task.py
@@ -30,8 +30,8 @@ def new_task(request: Message) -> Task:
30
31
return Task(
32
status=TaskStatus(state=TaskState.submitted),
33
- id=(request.task_id if request.task_id else str(uuid.uuid4())),
34
- context_id=(request.context_id if request.context_id else str(uuid.uuid4())),
+ id=request.task_id or str(uuid.uuid4()),
+ context_id=request.context_id or str(uuid.uuid4()),
35
history=[request],
36
)
37
0 commit comments