mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
feat: wire runtime entrypoints to service factory defaults
This change routes adk run and the FastAPI server through the new session/artifact service factory, keeps the default experience backed by per-agent .adk storage Co-authored-by: George Weale <gweale@google.com> PiperOrigin-RevId: 836733234
This commit is contained in:
committed by
Copybara-Service
parent
5453b5bfde
commit
06e6fc9132
@@ -327,15 +327,15 @@ def test_app(
|
||||
with (
|
||||
patch("signal.signal", return_value=None),
|
||||
patch(
|
||||
"google.adk.cli.fast_api.InMemorySessionService",
|
||||
"google.adk.cli.fast_api.create_session_service_from_options",
|
||||
return_value=mock_session_service,
|
||||
),
|
||||
patch(
|
||||
"google.adk.cli.fast_api.InMemoryArtifactService",
|
||||
"google.adk.cli.fast_api.create_artifact_service_from_options",
|
||||
return_value=mock_artifact_service,
|
||||
),
|
||||
patch(
|
||||
"google.adk.cli.fast_api.InMemoryMemoryService",
|
||||
"google.adk.cli.fast_api.create_memory_service_from_options",
|
||||
return_value=mock_memory_service,
|
||||
),
|
||||
patch(
|
||||
@@ -472,15 +472,15 @@ def test_app_with_a2a(
|
||||
with (
|
||||
patch("signal.signal", return_value=None),
|
||||
patch(
|
||||
"google.adk.cli.fast_api.InMemorySessionService",
|
||||
"google.adk.cli.fast_api.create_session_service_from_options",
|
||||
return_value=mock_session_service,
|
||||
),
|
||||
patch(
|
||||
"google.adk.cli.fast_api.InMemoryArtifactService",
|
||||
"google.adk.cli.fast_api.create_artifact_service_from_options",
|
||||
return_value=mock_artifact_service,
|
||||
),
|
||||
patch(
|
||||
"google.adk.cli.fast_api.InMemoryMemoryService",
|
||||
"google.adk.cli.fast_api.create_memory_service_from_options",
|
||||
return_value=mock_memory_service,
|
||||
),
|
||||
patch(
|
||||
|
||||
Reference in New Issue
Block a user