mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-09 20:50:58 +00:00
refactor: consolidate bot event routing
This commit is contained in:
committed by
huanghuoguoguo
parent
995888f6b2
commit
0d6aa8dcd4
@@ -228,34 +228,12 @@ export interface Bot {
|
||||
enable?: boolean;
|
||||
adapter: string;
|
||||
adapter_config: object;
|
||||
use_pipeline_name?: string;
|
||||
use_pipeline_uuid?: string;
|
||||
pipeline_routing_rules?: PipelineRoutingRule[];
|
||||
event_bindings?: EventBinding[];
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
adapter_runtime_values?: object;
|
||||
}
|
||||
|
||||
export type RoutingRuleOperator =
|
||||
| 'eq'
|
||||
| 'neq'
|
||||
| 'contains'
|
||||
| 'not_contains'
|
||||
| 'starts_with'
|
||||
| 'regex';
|
||||
|
||||
export interface PipelineRoutingRule {
|
||||
type:
|
||||
| 'launcher_type'
|
||||
| 'launcher_id'
|
||||
| 'message_content'
|
||||
| 'message_has_element';
|
||||
operator: RoutingRuleOperator;
|
||||
value: string;
|
||||
pipeline_uuid: string;
|
||||
}
|
||||
|
||||
export interface EventBinding {
|
||||
id?: string;
|
||||
event_pattern: string;
|
||||
|
||||
Reference in New Issue
Block a user