File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 55from google .adk .sessions import InMemorySessionService
66from google .genai .types import Content , Part
77from google .adk .agents .llm_agent import Agent
8- from restate .ext .adk import RestatePlugin , restate_object_context
8+ from restate .ext .adk import RestatePlugin , restate_context
99
1010from app .utils .models import WeatherResponse , WeatherPrompt
1111from app .utils .utils import call_weather_api
1616async def get_weather (city : str ) -> WeatherResponse :
1717 """Get the current weather for a given city."""
1818 # Do one or more durable steps using the Restate context
19- return await restate_object_context ().run_typed (
19+ return await restate_context ().run_typed (
2020 f"Get weather { city } " , call_weather_api , city = city
2121 )
2222
You can’t perform that action at this time.
0 commit comments