File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/a2a/server/apps/jsonrpc Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,6 @@ class JSONRPCApplication(ABC):
156156 """
157157
158158 # Method-to-model mapping for centralized routing
159- # Define the union type for all supported request models
160159 A2ARequestModel = (
161160 SendMessageRequest
162161 | SendStreamingMessageRequest
@@ -170,8 +169,9 @@ class JSONRPCApplication(ABC):
170169 | GetAuthenticatedExtendedCardRequest
171170 )
172171
173- METHOD_TO_MODEL = {
174- model .model_fields ["method" ].default : model for model in A2ARequestModel .__args__
172+ METHOD_TO_MODEL : dict [str , type [A2ARequestModel ]] = {
173+ model .model_fields ['method' ].default : model
174+ for model in A2ARequestModel .__args__
175175 }
176176
177177 def __init__ ( # noqa: PLR0913
You can’t perform that action at this time.
0 commit comments