fetchai / uAgents

A fast and lightweight framework for creating decentralized agents with ease.
Apache License 2.0
995 stars 241 forks source link

Restore agent compatibility with external loops #580

Open Archento opened 4 hours ago

Archento commented 4 hours ago

Prerequisites

Category

Bug (unexpected behavior)

Expected Behavior

Agents are able to be started with an external loop, i.e. having programs running that have their own asynchronous loop which then start and house an agent.

Observed Behavior

Agents can still be started as expected but once you stop an agent it will actually try to stop all running asyncio tasks. This means that if tasks are not shielded by the original application this agent will also try to tear down the host application.

To Reproduce

No response

Version

v0.17.1

Environment Details (Optional)

No response

Failure Logs (Optional)

No response

Additional Information (Optional)

No response