Skip to content

Commit 0330453

Browse files
committed
Removing registry entries and redundant constructor.
1 parent f897d0b commit 0330453

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

typescript-sdk/integrations/adk-middleware/examples/fastapi_server.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@
3434
instruction="You are a helpful assistant. Help users by answering their questions and assisting with their needs.",
3535
tools=[adk_tools.preload_memory_tool.PreloadMemoryTool()]
3636
)
37-
# Register the agent
38-
registry.set_default_agent(sample_agent)
39-
registry.register_agent('adk-tool-based-generative-ui', haiku_generator_agent)
40-
registry.register_agent('adk-human-in-loop-agent', human_in_loop_agent)
41-
registry.register_agent('adk-shared-state-agent', shared_state_agent)
42-
registry.register_agent('adk-predictive-state-agent', predictive_state_updates_agent)
43-
# Create ADK middleware agent
4437
# Create ADK middleware agent instances with direct agent references
4538
chat_agent = ADKAgent(
4639
adk_agent=sample_agent,
@@ -82,13 +75,6 @@
8275
use_in_memory_services=True
8376
)
8477

85-
adk_predictive_state_agent = ADKAgent(
86-
app_name="demo_app",
87-
user_id="demo_user",
88-
session_timeout_seconds=3600,
89-
use_in_memory_services=True
90-
)
91-
9278
# Create FastAPI app
9379
app = FastAPI(title="ADK Middleware Demo")
9480

0 commit comments

Comments
 (0)