Feat: Use the message_id returned by the interface as the id of the reply message #3221 (#8434)

### What problem does this PR solve?
Feat: Use the message_id returned by the interface as the id of the
reply message #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-06-24 09:34:33 +08:00
committed by GitHub
parent fd7ac17605
commit 96b63cc81f
11 changed files with 92 additions and 22 deletions

View File

@ -85,7 +85,7 @@ export enum Operator {
WaitingDialogue = 'WaitingDialogue',
Agent = 'Agent',
Tool = 'Tool',
Tavily = 'Tavily',
TavilySearch = 'TavilySearch',
}
export const SwitchLogicOperatorOptions = ['and', 'or'];
@ -250,7 +250,7 @@ export const operatorMap: Record<
[Operator.Code]: { backgroundColor: '#4c5458' },
[Operator.WaitingDialogue]: { backgroundColor: '#a5d65c' },
[Operator.Agent]: { backgroundColor: '#a5d65c' },
[Operator.Tavily]: { backgroundColor: '#a5d65c' },
[Operator.TavilySearch]: { backgroundColor: '#a5d65c' },
};
export const componentMenuList = [
@ -805,6 +805,7 @@ export const RestrictedUpstreamMap = {
[Operator.Code]: [Operator.Begin],
[Operator.WaitingDialogue]: [Operator.Begin],
[Operator.Agent]: [Operator.Begin],
[Operator.TavilySearch]: [Operator.Begin],
};
export const NodeMap = {
@ -848,7 +849,7 @@ export const NodeMap = {
[Operator.WaitingDialogue]: 'ragNode',
[Operator.Agent]: 'agentNode',
[Operator.Tool]: 'toolNode',
[Operator.Tavily]: 'ragNode',
[Operator.TavilySearch]: 'ragNode',
};
export const LanguageOptions = [