mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-19 18:14:38 +00:00
perf: workflow response field (#5443)
This commit is contained in:
@@ -18,6 +18,9 @@ export enum SseResponseEventEnum {
|
||||
}
|
||||
|
||||
export enum DispatchNodeResponseKeyEnum {
|
||||
answerText = 'answerText', // answer text
|
||||
reasoningText = 'reasoningText', // reasoning text
|
||||
|
||||
skipHandleId = 'skipHandleId', // skip handle id
|
||||
nodeResponse = 'responseData', // run node response
|
||||
nodeDispatchUsages = 'nodeDispatchUsages', // the node bill.
|
||||
|
@@ -253,6 +253,8 @@ export type DispatchNodeResponseType = {
|
||||
};
|
||||
|
||||
export type DispatchNodeResultType<T = {}, ERR = { [NodeOutputKeyEnum.errorText]?: string }> = {
|
||||
[DispatchNodeResponseKeyEnum.answerText]?: string;
|
||||
[DispatchNodeResponseKeyEnum.reasoningText]?: string;
|
||||
[DispatchNodeResponseKeyEnum.skipHandleId]?: string[]; // skip some edge handle id
|
||||
[DispatchNodeResponseKeyEnum.nodeResponse]?: DispatchNodeResponseType; // The node response detail
|
||||
[DispatchNodeResponseKeyEnum.nodeDispatchUsages]?: ChatNodeUsageType[]; // Node total usage
|
||||
|
Reference in New Issue
Block a user