Skip to content

Commit

Permalink
feat: add structured output to node data (DLC-525) (#570)
Browse files Browse the repository at this point in the history
<!-- You can erase any parts of this template not applicable to your Pull Request. -->

**Fixes or implements VF-XXX**

### Brief description. What is this change?

<!-- Build up some context for your teammates on the changes made here and potential tradeoffs made and/or highlight any topics for discussion -->
  • Loading branch information
pmvrmc committed Dec 17, 2024
1 parent df18abd commit addda95
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions packages/base-types/src/node/aiResponse.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import type { AICompletionParams, AIKnowledgeContextParams, AIKnowledgeParams, AIModelParams } from '../utils/ai';
import type {
AICompletionParams,
AIKnowledgeContextParams,
AIKnowledgeParams,
AIModelParams,
AIResponseFormatParams,
} from '../utils/ai';
import type { NodeType } from './constants';
import type {
BaseNode,
Expand All @@ -21,7 +27,12 @@ export interface Step<Data = StepData> extends BaseStep<Data, BaseStepPorts<Buil
type: NodeType.AI_RESPONSE;
}

export interface NodeData extends AIModelParams, AICompletionParams, AIKnowledgeContextParams, AIKnowledgeParams {
export interface NodeData
extends AIModelParams,
AICompletionParams,
AIKnowledgeContextParams,
AIKnowledgeParams,
AIResponseFormatParams {
notFoundPath?: boolean;

// the existance of this property is also a flag if the step is a legacy version or not
Expand Down

0 comments on commit addda95

Please sign in to comment.