We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef3d659 + aae5cf0 commit 8dcee5dCopy full SHA for 8dcee5d
src/strands/experimental/bidi/agent/agent.py
@@ -428,11 +428,15 @@ async def run_outputs():
428
for output in outputs:
429
if hasattr(output, "start"):
430
await output.start()
431
-
+
432
+ # Start agent after all IO is ready
433
+ await self.start()
434
try:
435
await asyncio.gather(run_inputs(), run_outputs(), return_exceptions=True)
436
437
finally:
438
+ await self.stop()
439
440
for input_ in inputs:
441
if hasattr(input_, "stop"):
442
await input_.stop()
0 commit comments