File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 3
3
import grpc
4
4
import pytest
5
5
6
- from google .protobuf import struct_pb2
7
-
8
6
from a2a .client import A2AGrpcClient
9
7
from a2a .grpc import a2a_pb2 , a2a_pb2_grpc
10
8
from a2a .types import (
@@ -107,7 +105,7 @@ def sample_artifact() -> Artifact:
107
105
name = 'example.txt' ,
108
106
description = 'An example artifact' ,
109
107
parts = [Part (root = TextPart (text = 'Hi there' ))],
110
- metadata = struct_pb2 . Struct () ,
108
+ metadata = {} ,
111
109
extensions = [],
112
110
)
113
111
@@ -120,7 +118,7 @@ def sample_task_status_update_event() -> TaskStatusUpdateEvent:
120
118
contextId = 'ctx-1' ,
121
119
status = TaskStatus (state = TaskState .working ),
122
120
final = False ,
123
- metadata = struct_pb2 . Struct () ,
121
+ metadata = {} ,
124
122
)
125
123
126
124
@@ -135,7 +133,7 @@ def sample_task_artifact_update_event(
135
133
artifact = sample_artifact ,
136
134
append = True ,
137
135
last_chunk = True ,
138
- metadata = struct_pb2 . Struct () ,
136
+ metadata = {} ,
139
137
)
140
138
141
139
You can’t perform that action at this time.
0 commit comments