File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 run : bash run_itk.sh
2929 working-directory : itk
3030 env :
31- A2A_SAMPLES_REVISION : itk-v.015 -alpha
31+ A2A_SAMPLES_REVISION : itk-v.016 -alpha
Original file line number Diff line number Diff line change @@ -36,7 +36,11 @@ You must set the `A2A_SAMPLES_REVISION` environment variable to specify which re
3636
3737Example:
3838``` bash
39+ <<< <<< < HEAD
3940export A2A_SAMPLES_REVISION=itk-v.015-alpha
41+ =======
42+ export A2A_SAMPLES_REVISION=itk-v.016-alpha
43+ >>>>>>> 7b31a87 (fix: force itk agent to create task before updating the status)
4044```
4145
4246### 2. Execute Tests
Original file line number Diff line number Diff line change 3232 Message ,
3333 Part ,
3434 SendMessageRequest ,
35+ Task ,
3536 TaskState ,
37+ TaskStatus ,
3638)
3739from a2a .utils import TransportProtocol
3840
@@ -198,7 +200,16 @@ async def execute(
198200 context .context_id ,
199201 )
200202
201- await task_updater .update_status (TaskState .TASK_STATE_SUBMITTED )
203+ # Explicitly create the task by sending it to the queue
204+ task = Task (
205+ id = context .task_id ,
206+ context_id = context .context_id ,
207+ status = TaskStatus (state = TaskState .TASK_STATE_SUBMITTED ),
208+ history = [context .message ] if context .message else [],
209+ )
210+ async with task_updater ._lock :
211+ await event_queue .enqueue_event (task )
212+
202213 await task_updater .update_status (TaskState .TASK_STATE_WORKING )
203214
204215 instruction = extract_instruction (context .message )
You can’t perform that action at this time.
0 commit comments