Skip to content

Commit

Permalink
fix: entity filling trace (VF-2728) (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
DecathectZero authored Jan 20, 2022
1 parent 29b47dc commit 499cfda
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/base-types/src/node/utils/trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export enum TraceType {
STREAM = 'stream',
VISUAL = 'visual',
NO_REPLY = 'no-reply',
ENTITY_FILLING = 'entity-filling',
}

export interface BaseTraceFramePath<Event extends BaseEvent = BaseEvent> {
Expand Down
11 changes: 10 additions & 1 deletion packages/base-types/src/trace/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ export interface NoReplyTrace extends BaseTraceFrame<NoReplyTracePayload> {
type: TraceType.NO_REPLY;
}

export interface EntityFillingTracePayload {
entityToFill: string;
intent: IntentRequest;
}
export interface EntityFillingTrace extends BaseTraceFrame<EntityFillingTracePayload> {
type: TraceType.ENTITY_FILLING;
}

export type AnyTrace =
| ExitTrace
| TextTrace
Expand All @@ -69,4 +77,5 @@ export type AnyTrace =
| ChoiceTrace
| StreamTrace
| VisualTrace
| NoReplyTrace;
| NoReplyTrace
| EntityFillingTrace;

0 comments on commit 499cfda

Please sign in to comment.