File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 99from a2a .client .jsonrpc_client import NewJsonRpcClient
1010from a2a .client .middleware import ClientCallInterceptor
1111from a2a .client .rest_client import NewRestfulClient
12- from a2a .types import (
13- AgentCapabilities ,
14- AgentCard ,
15- )
12+ from a2a .types import AgentCapabilities , AgentCard , AgentInterface
1613from a2a .utils import Transports
1714
1815
@@ -135,7 +132,11 @@ def minimal_agent_card(
135132 return AgentCard (
136133 url = url ,
137134 preferred_transport = transports [0 ] if transports else None ,
138- additional_interfaces = transports [1 :] if len (transports ) > 1 else [],
135+ additional_interfaces = [
136+ AgentInterface (transport = t , url = url ) for t in transports [1 :]
137+ ]
138+ if len (transports ) > 1
139+ else [],
139140 supports_authenticated_extended_card = True ,
140141 capabilities = AgentCapabilities (),
141142 default_input_modes = [],
You can’t perform that action at this time.
0 commit comments