Skip to content

Commit

Permalink
Fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
collindutter committed Aug 8, 2024
1 parent 0f19385 commit 729f3aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/griptape-framework/misc/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,11 @@ def handler1(event: BaseEvent):
def handler2(event: BaseEvent):
print("Handler 2", event.__class__)

event_bus.event_listeners=[
event_bus.add_event_listeners([
EventListener(handler1),
EventListener(handler2),
]
)

agent = Agent()

Expand Down

0 comments on commit 729f3aa

Please sign in to comment.