mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
feat: minor changes adapt to event emitting
This commit is contained in:
@@ -199,7 +199,7 @@ class RuntimePipeline:
|
||||
|
||||
event_ctx_result = await self.ap.plugin_connector.handler.emit_event(event_ctx_data)
|
||||
|
||||
event_ctx.update(**event_ctx_result)
|
||||
event_ctx = event_context.EventContext.parse_from_dict(event_ctx_result['event_context'])
|
||||
|
||||
if event_ctx.is_prevented_default():
|
||||
return
|
||||
|
||||
@@ -87,4 +87,4 @@ class RuntimeConnectionHandler(handler.Handler):
|
||||
timeout=10,
|
||||
)
|
||||
|
||||
return result['event_context']
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user