Skip to content

Commit 2152ec3

Browse files
committed
Fix A2A unit testing and QueryRequest after rebase
1 parent 7faa470 commit 2152ec3

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

src/app/endpoints/a2a.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ async def _process_task_streaming( # pylint: disable=too-many-locals
307307
no_tools=False,
308308
generate_topic_summary=True,
309309
media_type=None,
310+
vector_store_ids=None,
310311
)
311312

312313
# Get LLM client and select model

src/app/main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from configuration import configuration
1818
from log import get_logger
1919
from models.responses import InternalServerErrorResponse
20+
from a2a_storage import A2AStorageFactory
2021
from utils.common import register_mcp_servers_async
2122
from utils.llama_stack_version import check_llama_stack_version
2223

@@ -53,6 +54,10 @@ async def lifespan(_app: FastAPI) -> AsyncIterator[None]:
5354

5455
yield
5556

57+
# Cleanup resources on shutdown
58+
await A2AStorageFactory.cleanup()
59+
logger.info("App shutdown complete")
60+
5661

5762
app = FastAPI(
5863
title=f"{service_name} service - OpenAPI",

tests/unit/models/config/test_dump_configuration.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,10 @@ def test_dump_configuration_with_quota_limiters(tmp_path: Path) -> None:
520520
},
521521
"enable_token_history": True,
522522
},
523+
"a2a_state": {
524+
"sqlite": None,
525+
"postgres": None,
526+
},
523527
}
524528

525529

@@ -627,6 +631,7 @@ def test_dump_configuration_with_quota_limiters_different_values(
627631
"service": {
628632
"host": "localhost",
629633
"port": 8080,
634+
"base_url": None,
630635
"auth_enabled": False,
631636
"workers": 1,
632637
"color_log": True,
@@ -919,6 +924,10 @@ def test_dump_configuration_byok(tmp_path: Path) -> None:
919924
},
920925
"enable_token_history": False,
921926
},
927+
"a2a_state": {
928+
"sqlite": None,
929+
"postgres": None,
930+
},
922931
}
923932

924933

@@ -1001,6 +1010,7 @@ def test_dump_configuration_pg_namespace(tmp_path: Path) -> None:
10011010
"service": {
10021011
"host": "localhost",
10031012
"port": 8080,
1013+
"base_url": None,
10041014
"auth_enabled": False,
10051015
"workers": 1,
10061016
"color_log": True,

0 commit comments

Comments
 (0)