Skip to content

Commit

Permalink
fix: add override params
Browse files Browse the repository at this point in the history
  • Loading branch information
DecathectZero committed Nov 13, 2023
1 parent 2fa4a60 commit 68915bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/base-types/src/node/aiResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import { AIContextParams, AIKnowledgeParams, AIModelParams } from '../utils/ai';
import { NodeType } from './constants';
import { BaseNode, BaseStep, BaseStepPorts, BuiltInFailPort, BuiltInNextPort, NodeElseID, NodeNextID } from './utils';

export interface StepData extends AIModelParams, AIContextParams, AIKnowledgeParams {}
export interface StepData extends AIModelParams, AIContextParams, AIKnowledgeParams {
notFoundPath?: boolean;

// the existance of this property is also a flag if the step is a legacy version or not
overrideParams?: boolean;
}

export interface Step<Data = StepData> extends BaseStep<Data, BaseStepPorts<BuiltInNextPort & BuiltInFailPort>> {
type: NodeType.AI_RESPONSE;
Expand Down
3 changes: 3 additions & 0 deletions packages/base-types/src/node/aiSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export interface Set extends AIContextParams {
export interface StepData extends AIModelParams, AIKnowledgeParams {
label: string;
sets: Set[];

// the existance of this property is also a flag if the step is a legacy version or not
overrideParams?: boolean;
}

export interface Step<Data = StepData> extends BaseStep<Data> {
Expand Down

0 comments on commit 68915bf

Please sign in to comment.