-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Labels
feature[Issue Type] New features or improvements to existing features.[Issue Type] New features or improvements to existing features.priority/majorDefault priority of the PR or issue.Default priority of the PR or issue.
Description
Search before asking
- I searched in the issues and found nothing similar.
Description
Currently, if user want to send/receive custom events, they must define a new event type, like
class MyEvent(Event):
"""User custom event."""
field1: str
field2: int
This can be somewhat cumbersome at times.
To simplify the definition of Agent, we want to support user only declare the identifier, like:
ctx.send_event(identifier="MyEvent", field1="test", field2=1)
Are you willing to submit a PR?
- I'm willing to submit a PR!
Metadata
Metadata
Assignees
Labels
feature[Issue Type] New features or improvements to existing features.[Issue Type] New features or improvements to existing features.priority/majorDefault priority of the PR or issue.Default priority of the PR or issue.