@@ -90,11 +90,11 @@ async def build(self) -> AgentCard:
90
90
version = self ._agent_version ,
91
91
capabilities = self ._capabilities ,
92
92
skills = all_skills ,
93
- defaultInputModes = ['text/plain' ],
94
- defaultOutputModes = ['text/plain' ],
95
- supportsAuthenticatedExtendedCard = False ,
93
+ default_input_modes = ['text/plain' ],
94
+ default_output_modes = ['text/plain' ],
95
+ supports_authenticated_extended_card = False ,
96
96
provider = self ._provider ,
97
- securitySchemes = self ._security_schemes ,
97
+ security_schemes = self ._security_schemes ,
98
98
)
99
99
except Exception as e :
100
100
raise RuntimeError (
@@ -125,8 +125,8 @@ async def _build_llm_agent_skills(agent: LlmAgent) -> List[AgentSkill]:
125
125
name = 'model' ,
126
126
description = agent_description ,
127
127
examples = agent_examples ,
128
- inputModes = _get_input_modes (agent ),
129
- outputModes = _get_output_modes (agent ),
128
+ input_modes = _get_input_modes (agent ),
129
+ output_modes = _get_output_modes (agent ),
130
130
tags = ['llm' ],
131
131
)
132
132
)
@@ -160,8 +160,8 @@ async def _build_sub_agent_skills(agent: BaseAgent) -> List[AgentSkill]:
160
160
name = f'{ sub_agent .name } : { skill .name } ' ,
161
161
description = skill .description ,
162
162
examples = skill .examples ,
163
- inputModes = skill .inputModes ,
164
- outputModes = skill .outputModes ,
163
+ input_modes = skill .input_modes ,
164
+ output_modes = skill .output_modes ,
165
165
tags = [f'sub_agent:{ sub_agent .name } ' ] + (skill .tags or []),
166
166
)
167
167
sub_agent_skills .append (aggregated_skill )
@@ -197,8 +197,8 @@ async def _build_tool_skills(agent: LlmAgent) -> List[AgentSkill]:
197
197
name = tool_name ,
198
198
description = getattr (tool , 'description' , f'Tool: { tool_name } ' ),
199
199
examples = None ,
200
- inputModes = None ,
201
- outputModes = None ,
200
+ input_modes = None ,
201
+ output_modes = None ,
202
202
tags = ['llm' , 'tools' ],
203
203
)
204
204
)
@@ -213,8 +213,8 @@ def _build_planner_skill(agent: LlmAgent) -> AgentSkill:
213
213
name = 'planning' ,
214
214
description = 'Can think about the tasks to do and make plans' ,
215
215
examples = None ,
216
- inputModes = None ,
217
- outputModes = None ,
216
+ input_modes = None ,
217
+ output_modes = None ,
218
218
tags = ['llm' , 'planning' ],
219
219
)
220
220
@@ -226,8 +226,8 @@ def _build_code_executor_skill(agent: LlmAgent) -> AgentSkill:
226
226
name = 'code-execution' ,
227
227
description = 'Can execute codes' ,
228
228
examples = None ,
229
- inputModes = None ,
230
- outputModes = None ,
229
+ input_modes = None ,
230
+ output_modes = None ,
231
231
tags = ['llm' , 'code_execution' ],
232
232
)
233
233
@@ -250,8 +250,8 @@ async def _build_non_llm_agent_skills(agent: BaseAgent) -> List[AgentSkill]:
250
250
name = agent_name ,
251
251
description = agent_description ,
252
252
examples = agent_examples ,
253
- inputModes = _get_input_modes (agent ),
254
- outputModes = _get_output_modes (agent ),
253
+ input_modes = _get_input_modes (agent ),
254
+ output_modes = _get_output_modes (agent ),
255
255
tags = [agent_type ],
256
256
)
257
257
)
@@ -282,8 +282,8 @@ def _build_orchestration_skill(
282
282
name = 'sub-agents' ,
283
283
description = 'Orchestrates: ' + '; ' .join (sub_agent_descriptions ),
284
284
examples = None ,
285
- inputModes = None ,
286
- outputModes = None ,
285
+ input_modes = None ,
286
+ output_modes = None ,
287
287
tags = [agent_type , 'orchestration' ],
288
288
)
289
289
@@ -525,7 +525,7 @@ def _get_input_modes(agent: BaseAgent) -> Optional[List[str]]:
525
525
return None
526
526
527
527
# This could be enhanced to check model capabilities
528
- # For now, return None to use defaultInputModes
528
+ # For now, return None to use default_input_modes
529
529
return None
530
530
531
531
0 commit comments