File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/a2a/server/request_handlers
tests/server/request_handlers Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -200,10 +200,10 @@ async def _setup_message_execution(
200200 )
201201
202202 task = task_manager .update_with_message (params .message , task )
203- elif params .message .taskId :
203+ elif params .message .task_id :
204204 raise ServerError (
205205 error = TaskNotFoundError (
206- message = f'Task { params .message .taskId } was specified but does not exist'
206+ message = f'Task { params .message .task_id } was specified but does not exist'
207207 )
208208 )
209209
Original file line number Diff line number Diff line change @@ -1787,7 +1787,7 @@ async def test_on_resubscribe_to_task_in_terminal_state(terminal_state):
17871787
17881788@pytest .mark .asyncio
17891789async def test_on_message_send_task_id_provided_but_task_not_found ():
1790- """Test on_message_send when taskId is provided but task doesn't exist."""
1790+ """Test on_message_send when task_id is provided but task doesn't exist."""
17911791 task_id = 'nonexistent_task'
17921792 mock_task_store = AsyncMock (spec = TaskStore )
17931793
@@ -1800,7 +1800,7 @@ async def test_on_message_send_task_id_provided_but_task_not_found():
18001800 role = Role .user ,
18011801 messageId = 'msg_nonexistent' ,
18021802 parts = [Part (root = TextPart (text = 'Hello' ))],
1803- taskId = task_id ,
1803+ task_id = task_id ,
18041804 contextId = 'ctx1' ,
18051805 )
18061806 )
@@ -1827,7 +1827,7 @@ async def test_on_message_send_task_id_provided_but_task_not_found():
18271827
18281828@pytest .mark .asyncio
18291829async def test_on_message_send_stream_task_id_provided_but_task_not_found ():
1830- """Test on_message_send_stream when taskId is provided but task doesn't exist."""
1830+ """Test on_message_send_stream when task_id is provided but task doesn't exist."""
18311831 task_id = 'nonexistent_stream_task'
18321832 mock_task_store = AsyncMock (spec = TaskStore )
18331833
@@ -1840,7 +1840,7 @@ async def test_on_message_send_stream_task_id_provided_but_task_not_found():
18401840 role = Role .user ,
18411841 messageId = 'msg_nonexistent_stream' ,
18421842 parts = [Part (root = TextPart (text = 'Hello' ))],
1843- taskId = task_id ,
1843+ task_id = task_id ,
18441844 contextId = 'ctx1' ,
18451845 )
18461846 )
You can’t perform that action at this time.
0 commit comments