@@ -59,7 +59,6 @@ def __init__(
59
59
agent : BaseAgent ,
60
60
rpc_url : Optional [str ] = None ,
61
61
capabilities : Optional [AgentCapabilities ] = None ,
62
- doc_url : Optional [str ] = None ,
63
62
provider : Optional [AgentProvider ] = None ,
64
63
agent_version : Optional [str ] = None ,
65
64
security_schemes : Optional [Dict [str , SecurityScheme ]] = None ,
@@ -70,7 +69,6 @@ def __init__(
70
69
self ._agent = agent
71
70
self ._rpc_url = rpc_url or 'http://localhost:80/a2a'
72
71
self ._capabilities = capabilities or AgentCapabilities ()
73
- self ._doc_url = doc_url
74
72
self ._provider = provider
75
73
self ._security_schemes = security_schemes
76
74
self ._agent_version = agent_version or '0.0.1'
@@ -85,16 +83,15 @@ async def build(self) -> AgentCard:
85
83
return AgentCard (
86
84
name = self ._agent .name ,
87
85
description = self ._agent .description or 'An ADK Agent' ,
88
- doc_url = self ._doc_url ,
89
86
url = f"{ self ._rpc_url .rstrip ('/' )} " ,
90
87
version = self ._agent_version ,
91
88
capabilities = self ._capabilities ,
92
89
skills = all_skills ,
93
- defaultInputModes = ['text/plain' ],
94
- defaultOutputModes = ['text/plain' ],
95
- supportsAuthenticatedExtendedCard = False ,
90
+ default_input_modes = ['text/plain' ],
91
+ default_output_modes = ['text/plain' ],
92
+ supports_authenticated_extended_card = False ,
96
93
provider = self ._provider ,
97
- securitySchemes = self ._security_schemes ,
94
+ security_schemes = self ._security_schemes ,
98
95
)
99
96
except Exception as e :
100
97
raise RuntimeError (
@@ -125,8 +122,8 @@ async def _build_llm_agent_skills(agent: LlmAgent) -> List[AgentSkill]:
125
122
name = 'model' ,
126
123
description = agent_description ,
127
124
examples = agent_examples ,
128
- inputModes = _get_input_modes (agent ),
129
- outputModes = _get_output_modes (agent ),
125
+ input_modes = _get_input_modes (agent ),
126
+ output_modes = _get_output_modes (agent ),
130
127
tags = ['llm' ],
131
128
)
132
129
)
@@ -160,8 +157,8 @@ async def _build_sub_agent_skills(agent: BaseAgent) -> List[AgentSkill]:
160
157
name = f'{ sub_agent .name } : { skill .name } ' ,
161
158
description = skill .description ,
162
159
examples = skill .examples ,
163
- inputModes = skill .inputModes ,
164
- outputModes = skill .outputModes ,
160
+ input_modes = skill .input_modes ,
161
+ output_modes = skill .output_modes ,
165
162
tags = [f'sub_agent:{ sub_agent .name } ' ] + (skill .tags or []),
166
163
)
167
164
sub_agent_skills .append (aggregated_skill )
@@ -197,8 +194,8 @@ async def _build_tool_skills(agent: LlmAgent) -> List[AgentSkill]:
197
194
name = tool_name ,
198
195
description = getattr (tool , 'description' , f'Tool: { tool_name } ' ),
199
196
examples = None ,
200
- inputModes = None ,
201
- outputModes = None ,
197
+ input_modes = None ,
198
+ output_modes = None ,
202
199
tags = ['llm' , 'tools' ],
203
200
)
204
201
)
@@ -213,8 +210,8 @@ def _build_planner_skill(agent: LlmAgent) -> AgentSkill:
213
210
name = 'planning' ,
214
211
description = 'Can think about the tasks to do and make plans' ,
215
212
examples = None ,
216
- inputModes = None ,
217
- outputModes = None ,
213
+ input_modes = None ,
214
+ output_modes = None ,
218
215
tags = ['llm' , 'planning' ],
219
216
)
220
217
@@ -226,8 +223,8 @@ def _build_code_executor_skill(agent: LlmAgent) -> AgentSkill:
226
223
name = 'code-execution' ,
227
224
description = 'Can execute codes' ,
228
225
examples = None ,
229
- inputModes = None ,
230
- outputModes = None ,
226
+ input_modes = None ,
227
+ output_modes = None ,
231
228
tags = ['llm' , 'code_execution' ],
232
229
)
233
230
@@ -250,8 +247,8 @@ async def _build_non_llm_agent_skills(agent: BaseAgent) -> List[AgentSkill]:
250
247
name = agent_name ,
251
248
description = agent_description ,
252
249
examples = agent_examples ,
253
- inputModes = _get_input_modes (agent ),
254
- outputModes = _get_output_modes (agent ),
250
+ input_modes = _get_input_modes (agent ),
251
+ output_modes = _get_output_modes (agent ),
255
252
tags = [agent_type ],
256
253
)
257
254
)
@@ -282,8 +279,8 @@ def _build_orchestration_skill(
282
279
name = 'sub-agents' ,
283
280
description = 'Orchestrates: ' + '; ' .join (sub_agent_descriptions ),
284
281
examples = None ,
285
- inputModes = None ,
286
- outputModes = None ,
282
+ input_modes = None ,
283
+ output_modes = None ,
287
284
tags = [agent_type , 'orchestration' ],
288
285
)
289
286
0 commit comments