File tree Expand file tree Collapse file tree
tests/unittests/a2a/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ def __init__(
6969
7070 self ._agent = agent
7171 self ._rpc_url = rpc_url or 'http://localhost:80/a2a'
72- self ._capabilities = capabilities or AgentCapabilities ()
72+ self ._capabilities = capabilities or AgentCapabilities (streaming = True )
7373 self ._doc_url = doc_url
7474 self ._provider = provider
7575 self ._security_schemes = security_schemes
Original file line number Diff line number Diff line change @@ -65,6 +65,10 @@ def test_init_with_valid_agent(self):
6565 assert builder ._agent == mock_agent
6666 assert builder ._rpc_url == "http://localhost:80/a2a"
6767 assert isinstance (builder ._capabilities , AgentCapabilities )
68+ # The card is served alongside a DefaultRequestHandler that always
69+ # implements message/stream, so the default capabilities must advertise
70+ # streaming support rather than leaving peers to assume it is missing.
71+ assert builder ._capabilities .streaming is True
6872 assert builder ._doc_url is None
6973 assert builder ._provider is None
7074 assert builder ._security_schemes is None
You can’t perform that action at this time.
0 commit comments