mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-22 04:16:07 +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_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():
|
if event_ctx.is_prevented_default():
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -87,4 +87,4 @@ class RuntimeConnectionHandler(handler.Handler):
|
|||||||
timeout=10,
|
timeout=10,
|
||||||
)
|
)
|
||||||
|
|
||||||
return result['event_context']
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user