@@ -517,7 +517,7 @@ def task_state(cls, state: a2a_pb2.TaskState) -> types.TaskState:
517517 @classmethod
518518 def artifact (cls , artifact : a2a_pb2 .Artifact ) -> types .Artifact :
519519 return types .Artifact (
520- artifactId = artifact .artifact_id ,
520+ artifact_id = artifact .artifact_id ,
521521 description = artifact .description ,
522522 metadata = FromProto .metadata (artifact .metadata ),
523523 name = artifact .name ,
@@ -577,12 +577,12 @@ def message_send_configuration(
577577 ) -> types .MessageSendConfiguration :
578578 return types .MessageSendConfiguration (
579579 accepted_output_modes = list (config .accepted_output_modes ),
580- pushNotificationConfig = FromProto .push_notification_config (
580+ push_notification_config = FromProto .push_notification_config (
581581 config .push_notification
582582 )
583583 if config .HasField ('push_notification' )
584584 else None ,
585- historyLength = config .history_length ,
585+ history_length = config .history_length ,
586586 blocking = config .blocking ,
587587 )
588588
@@ -638,7 +638,7 @@ def task_push_notification_config(
638638 )
639639 )
640640 return types .TaskPushNotificationConfig (
641- pushNotificationConfig = cls .push_notification_config (
641+ push_notification_config = cls .push_notification_config (
642642 request .config .push_notification_config ,
643643 ),
644644 task_id = m .group (1 ),
@@ -651,18 +651,18 @@ def agent_card(
651651 ) -> types .AgentCard :
652652 return types .AgentCard (
653653 capabilities = cls .capabilities (card .capabilities ),
654- defaultInputModes = list (card .default_input_modes ),
655- defaultOutputModes = list (card .default_output_modes ),
654+ default_input_modes = list (card .default_input_modes ),
655+ default_output_modes = list (card .default_output_modes ),
656656 description = card .description ,
657- documentationUrl = card .documentation_url ,
657+ documentation_url = card .documentation_url ,
658658 name = card .name ,
659659 provider = cls .provider (card .provider ),
660660 security = cls .security (list (card .security )),
661- securitySchemes = cls .security_schemes (dict (card .security_schemes )),
661+ security_schemes = cls .security_schemes (dict (card .security_schemes )),
662662 skills = [cls .skill (x ) for x in card .skills ] if card .skills else [],
663663 url = card .url ,
664664 version = card .version ,
665- supportsAuthenticatedExtendedCard = card .supports_authenticated_extended_card ,
665+ supports_authenticated_extended_card = card .supports_authenticated_extended_card ,
666666 )
667667
668668 @classmethod
@@ -678,7 +678,7 @@ def task_query_params(
678678 )
679679 )
680680 return types .TaskQueryParams (
681- historyLength = request .history_length
681+ history_length = request .history_length
682682 if request .history_length
683683 else None ,
684684 id = m .group (1 ),
@@ -691,7 +691,7 @@ def capabilities(
691691 ) -> types .AgentCapabilities :
692692 return types .AgentCapabilities (
693693 streaming = capabilities .streaming ,
694- pushNotifications = capabilities .push_notifications ,
694+ push_notifications = capabilities .push_notifications ,
695695 )
696696
697697 @classmethod
@@ -741,7 +741,7 @@ def security_scheme(
741741 root = types .HTTPAuthSecurityScheme (
742742 description = scheme .http_auth_security_scheme .description ,
743743 scheme = scheme .http_auth_security_scheme .scheme ,
744- bearerFormat = scheme .http_auth_security_scheme .bearer_format ,
744+ bearer_format = scheme .http_auth_security_scheme .bearer_format ,
745745 )
746746 )
747747 if scheme .HasField ('oauth2_security_scheme' ):
@@ -754,42 +754,42 @@ def security_scheme(
754754 return types .SecurityScheme (
755755 root = types .OpenIdConnectSecurityScheme (
756756 description = scheme .open_id_connect_security_scheme .description ,
757- openIdConnectUrl = scheme .open_id_connect_security_scheme .open_id_connect_url ,
757+ open_id_connect_url = scheme .open_id_connect_security_scheme .open_id_connect_url ,
758758 )
759759 )
760760
761761 @classmethod
762762 def oauth2_flows (cls , flows : a2a_pb2 .OAuthFlows ) -> types .OAuthFlows :
763763 if flows .HasField ('authorization_code' ):
764764 return types .OAuthFlows (
765- authorizationCode = types .AuthorizationCodeOAuthFlow (
766- authorizationUrl = flows .authorization_code .authorization_url ,
767- refreshUrl = flows .authorization_code .refresh_url ,
765+ authorization_code = types .AuthorizationCodeOAuthFlow (
766+ authorization_url = flows .authorization_code .authorization_url ,
767+ refresh_url = flows .authorization_code .refresh_url ,
768768 scopes = dict (flows .authorization_code .scopes .items ()),
769- tokenUrl = flows .authorization_code .token_url ,
769+ token_url = flows .authorization_code .token_url ,
770770 ),
771771 )
772772 if flows .HasField ('client_credentials' ):
773773 return types .OAuthFlows (
774- clientCredentials = types .ClientCredentialsOAuthFlow (
775- refreshUrl = flows .client_credentials .refresh_url ,
774+ client_credentials = types .ClientCredentialsOAuthFlow (
775+ refresh_url = flows .client_credentials .refresh_url ,
776776 scopes = dict (flows .client_credentials .scopes .items ()),
777- tokenUrl = flows .client_credentials .token_url ,
777+ token_url = flows .client_credentials .token_url ,
778778 ),
779779 )
780780 if flows .HasField ('implicit' ):
781781 return types .OAuthFlows (
782782 implicit = types .ImplicitOAuthFlow (
783- authorizationUrl = flows .implicit .authorization_url ,
784- refreshUrl = flows .implicit .refresh_url ,
783+ authorization_url = flows .implicit .authorization_url ,
784+ refresh_url = flows .implicit .refresh_url ,
785785 scopes = dict (flows .implicit .scopes .items ()),
786786 ),
787787 )
788788 return types .OAuthFlows (
789789 password = types .PasswordOAuthFlow (
790- refreshUrl = flows .password .refresh_url ,
790+ refresh_url = flows .password .refresh_url ,
791791 scopes = dict (flows .password .scopes .items ()),
792- tokenUrl = flows .password .token_url ,
792+ token_url = flows .password .token_url ,
793793 ),
794794 )
795795
0 commit comments