Skip to content

Commit cd7cafa

Browse files
committed
Replace usages of type
1 parent e4ced98 commit cd7cafa

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

examples/helloworld/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async def main() -> None:
1818
'message': {
1919
'role': 'user',
2020
'parts': [
21-
{'type': 'text', 'text': 'how much is 10 USD in INR?'}
21+
{'itemType': 'text', 'text': 'how much is 10 USD in INR?'}
2222
],
2323
'messageId': uuid4().hex,
2424
},

examples/langgraph/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def create_send_message_payload(
2626
payload: dict[str, Any] = {
2727
'message': {
2828
'role': 'user',
29-
'parts': [{'type': 'text', 'text': text}],
29+
'parts': [{'itemType': 'text', 'text': text}],
3030
'messageId': uuid4().hex,
3131
},
3232
}

tests/server/events/test_event_consumer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
'id': '123',
2929
'contextId': 'session-xyz',
3030
'status': {'state': 'submitted'},
31-
'type': 'task',
31+
'itemType': 'task',
3232
}
3333

3434
MESSAGE_PAYLOAD: dict[str, Any] = {

tests/server/events/test_event_queue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
'id': '123',
2222
'contextId': 'session-xyz',
2323
'status': {'state': 'submitted'},
24-
'type': 'task',
24+
'itemType': 'task',
2525
}
2626
MESSAGE_PAYLOAD: dict[str, Any] = {
2727
'role': 'agent',

tests/server/request_handlers/test_jsonrpc_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
'id': 'task_123',
5454
'contextId': 'session-xyz',
5555
'status': {'state': 'submitted'},
56-
'type': 'task',
56+
'itemType': 'task',
5757
}
5858
MESSAGE_PAYLOAD: dict[str, Any] = {
5959
'role': 'agent',

tests/server/tasks/test_inmemory_task_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'id': 'task-abc',
1111
'contextId': 'session-xyz',
1212
'status': {'state': 'submitted'},
13-
'type': 'task',
13+
'itemType': 'task',
1414
}
1515

1616

tests/server/tasks/test_task_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
'id': 'task-abc',
2323
'contextId': 'session-xyz',
2424
'status': {'state': 'submitted'},
25-
'type': 'task',
25+
'itemType': 'task',
2626
}
2727

2828

@@ -205,7 +205,7 @@ async def test_save_task_event_new_task_no_task_id(
205205
'id': 'new-task-id',
206206
'contextId': 'some-context',
207207
'status': {'state': 'working'},
208-
'type': 'task',
208+
'itemType': 'task',
209209
}
210210
task = Task(**task_data)
211211
await task_manager_without_id.save_task_event(task)

0 commit comments

Comments
 (0)