You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Full runnable code for the StoryFlowAgent example" is not runnable as provided because it incorrectly mixes synchronous and asynchronous code.
The session_service methods (create_session, get_session) are asynchronous and need to be awaited. This requires the functions calling them to be defined as async def and awaited at the top level to function correctly.
Required Fixes:
The call_agent function signature should be async def call_agent(...).
The session_service.create_session(...) call must be awaited.
All session_service.get_session(...) calls must be awaited.
The final execution call must be changed to await call_agent(...).