generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 426
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem Statement
Currently only blocking functions are supported for agent hooks. This blocks the asyncio event loop and degrades performance for use-cases requiring IO (such as LLM calls in the hooks) for handling of hooks.
Proposed Solution
Support async handlers for hook callbacks. e.g.:
async def my_handler(event: MessageAddedEvent):
...
registry.add_callback(MessageAddedEvent, my_handler)
Use Case
IO heavy operations in the callback handlers
Alternatives Solutions
No response
Additional Context
No response
zastrowm and dbschmigelski
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request