File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
typescript-sdk/integrations/adk-middleware/examples Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 34
34
instruction = "You are a helpful assistant. Help users by answering their questions and assisting with their needs." ,
35
35
tools = [adk_tools .preload_memory_tool .PreloadMemoryTool ()]
36
36
)
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
44
37
# Create ADK middleware agent instances with direct agent references
45
38
chat_agent = ADKAgent (
46
39
adk_agent = sample_agent ,
82
75
use_in_memory_services = True
83
76
)
84
77
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
-
92
78
# Create FastAPI app
93
79
app = FastAPI (title = "ADK Middleware Demo" )
94
80
You can’t perform that action at this time.
0 commit comments