@@ -283,16 +283,18 @@ def agent_card(
283283 skills = [cls .skill (x ) for x in card .skills ] if card .skills else [],
284284 url = card .url ,
285285 version = card .version ,
286- supports_authenticated_extended_card = card .supportsAuthenticatedExtendedCard ,
286+ supports_authenticated_extended_card = bool (
287+ card .supportsAuthenticatedExtendedCard
288+ ),
287289 )
288290
289291 @classmethod
290292 def capabilities (
291293 cls , capabilities : types .AgentCapabilities
292294 ) -> a2a_pb2 .AgentCapabilities :
293295 return a2a_pb2 .AgentCapabilities (
294- streaming = capabilities .streaming ,
295- push_notifications = capabilities .pushNotifications ,
296+ streaming = bool ( capabilities .streaming ) ,
297+ push_notifications = bool ( capabilities .pushNotifications ) ,
296298 )
297299
298300 @classmethod
@@ -731,7 +733,7 @@ def security_scheme(
731733 root = types .APIKeySecurityScheme (
732734 description = scheme .api_key_security_scheme .description ,
733735 name = scheme .api_key_security_scheme .name ,
734- in_ = types .In (scheme .api_key_security_scheme .location ), # type: ignore[call-arg]
736+ in_ = types .In (scheme .api_key_security_scheme .location ), # type: ignore[call-arg]
735737 )
736738 )
737739 if scheme .HasField ('http_auth_security_scheme' ):
0 commit comments