generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 444
Open
Labels
area-asyncRelated to asynchronous flows or multi-threadingRelated to asynchronous flows or multi-threadingenhancementNew feature or requestNew feature or request
Description
Problem Statement
Currently, the events we pass to the callback handlers and also yield from our async iterator are not strongly typed. This makes it challenging for users to build conditions off the events for performing actions (e.g. printing model text chunks to screen). We should formalize the structure and strongly types these event payloads.
Proposed Solution
Solution is to implement interfaces for the Agent event payloads. Could be a dataclass, TypedDict, etc.
Use Case
To configure reliable conditions on the events for performing actions real-time (e.g., printing model text to screen in a chat application of Strands).
Alternatives Solutions
No response
Additional Context
No response
tmokmss and joshwand
Metadata
Metadata
Assignees
Labels
area-asyncRelated to asynchronous flows or multi-threadingRelated to asynchronous flows or multi-threadingenhancementNew feature or requestNew feature or request