Skip to content

docs: make StoryFlowAgent example fully async/await (#379)#408

Open
merdandt wants to merge 1 commit into
google:mainfrom
merdandt:fix-async-code-in-storyflow
Open

docs: make StoryFlowAgent example fully async/await (#379)#408
merdandt wants to merge 1 commit into
google:mainfrom
merdandt:fix-async-code-in-storyflow

Conversation

@merdandt

Copy link
Copy Markdown

Fixes #379

  • Convert call_agent to async def
  • Await session_service.create_session and session_service.get_session
  • Await the top-level call in the example block

All code now runs without RuntimeWarning: coroutine was never awaited.

@merdandt merdandt force-pushed the fix-async-code-in-storyflow branch from 3a7a62e to 623f578 Compare June 16, 2025 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation: StoryFlowAgent example is not runnable due to missing async/await

2 participants