Skip to content

Commit c8eb963

Browse files
committed
Edit some snake_case
1 parent 5441801 commit c8eb963

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/a2a/client/auth/interceptor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async def intercept(
3636
if (
3737
agent_card is None
3838
or agent_card.security is None
39-
or agent_card.securitySchemes is None
39+
or agent_card.security_schemes is None
4040
):
4141
return request_payload, http_kwargs
4242

@@ -45,8 +45,8 @@ async def intercept(
4545
credential = await self._credential_service.get_credentials(
4646
scheme_name, context
4747
)
48-
if credential and scheme_name in agent_card.securitySchemes:
49-
scheme_def_union = agent_card.securitySchemes.get(
48+
if credential and scheme_name in agent_card.security_schemes:
49+
scheme_def_union = agent_card.security_schemes.get(
5050
scheme_name
5151
)
5252
if not scheme_def_union:

src/a2a/utils/proto_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ def skill(cls, skill: types.AgentSkill) -> a2a_pb2.AgentSkill:
415415
description=skill.description,
416416
tags=skill.tags,
417417
examples=skill.examples,
418-
input_modes=skill.inputModes,
419-
output_modes=skill.outputModes,
418+
input_modes=skill.input_modes,
419+
output_modes=skill.output_modes,
420420
)
421421

422422
@classmethod
@@ -801,8 +801,8 @@ def skill(cls, skill: a2a_pb2.AgentSkill) -> types.AgentSkill:
801801
description=skill.description,
802802
tags=list(skill.tags),
803803
examples=list(skill.examples),
804-
inputModes=list(skill.input_modes),
805-
outputModes=list(skill.output_modes),
804+
input_modes=list(skill.input_modes),
805+
output_modes=list(skill.output_modes),
806806
)
807807

808808
@classmethod

tests/test_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def test_agent_skill_valid():
234234

235235
skill_full = AgentSkill(**FULL_AGENT_SKILL)
236236
assert skill_full.examples == ['Find me a pasta recipe']
237-
assert skill_full.inputModes == ['text/plain']
237+
assert skill_full.input_modes == ['text/plain']
238238

239239

240240
def test_agent_skill_invalid():

0 commit comments

Comments
 (0)