chore: apply suggestion

Changed `add_background_task` to `add_behavior` and added extra docs.
This commit is contained in:
2025-11-22 10:28:52 +01:00
parent f8f833df64
commit 1f9926fe00
11 changed files with 24 additions and 18 deletions

View File

@@ -34,7 +34,7 @@ async def test_agent_lifecycle():
async def dummy_task():
await asyncio.sleep(0.01)
await agent.add_background_task(dummy_task())
await agent.add_behavior(dummy_task())
assert len(agent._tasks) > 0
# Wait for task to finish