Skip to content

Commit

Permalink
fix: ai capture ports
Browse files Browse the repository at this point in the history
  • Loading branch information
DecathectZero committed Dec 19, 2023
1 parent 38fffac commit 03f3128
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions packages/base-types/src/node/aiCapture.ts
Original file line number Diff line number Diff line change
@@ -1,44 +1,28 @@
import { BaseStepPorts } from '@base-types/models';

import { AIModelParams } from '../utils/ai';
import { NodeType } from './constants';
import {
BaseNode,
BaseNoMatchNodeData,
BaseNoMatchStepData,
BaseNoReplyNodeData,
BaseNoReplyStepData,
BaseStep,
BaseStepPorts,
BuiltInFailPort,
BuiltInNextPort,
BuiltInNoMatchNoReplyPorts,
NodeElseID,
NodeIntentScope,
NodeNextID,
StepIntentScope,
} from './utils';

export interface StepData extends AIModelParams {}

export interface Step extends BaseStep<StepData, BaseStepPorts<BuiltInNextPort & BuiltInFailPort>> {
type: NodeType.AI_CAPTURE;

export interface StepData extends AIModelParams {
rules: string[];
entities: string[];
exitScenerios: string[];
}

export interface Node extends BaseNode, StepData, NodeNextID, NodeElseID {
export interface Step extends BaseStep<StepData, BaseStepPorts<BuiltInNextPort & BuiltInNoMatchNoReplyPorts>> {
type: NodeType.AI_CAPTURE;
}

export interface BaseCaptureData extends BaseNoReplyStepData, StepIntentScope, BaseNoMatchStepData {}

export interface StepData extends AIModelParams {}

export interface StepBuiltInPorts extends BuiltInNextPort, BuiltInNoMatchNoReplyPorts {}

export interface StepPorts extends BaseStepPorts<StepBuiltInPorts, []> {}

export interface Node extends BaseNode, StepData, NodeNextID, NodeIntentScope, BaseNoReplyNodeData, BaseNoMatchNodeData {
type: NodeType.AI_CAPTURE;
}

0 comments on commit 03f3128

Please sign in to comment.