feat(shipping-notice): 新增货代客户管理功能,支持客户导入、识别证据管理与客户确认
This commit is contained in:
1 parent
b595e157e9
commit
4fbaed2b4c
176 files changed
+14011
-994
No files matched your search
@@ -9,7 +9,10 @@ import { getAuthHeaders } from '@/shared/utils/auth';
|
||||
import { applyStreamErrorToMessage, type StreamErrorLabels } from '../utils/streamErrorMessage';
|
||||
import type { StartChatTurnOptions } from '../types/chat-turn.types';
|
||||
import type { ChatMessage, ChatRun } from '../types/chat.types';
|
||||
import { applyShippingUiStateToMessage } from './useChat';
|
||||
import {
|
||||
applyShippingOrderExtractionStateToMessage,
|
||||
applyShippingUiStateToMessage,
|
||||
} from './useChat';
|
||||
|
||||
export interface CreateStartChatTurnOptions {
|
||||
messages: Ref<ChatMessage[]>;
|
||||
@@ -169,6 +172,9 @@ export function createStartChatTurn(options: CreateStartChatTurnOptions) {
|
||||
if (eventName === 'shipping_ui_state' || eventName === 'ui_state.updated') {
|
||||
const botMsg = ensureBotMessage();
|
||||
if (botMsg) applyShippingUiStateToMessage(botMsg, data);
|
||||
} else if (eventName === 'shipping_order_extraction_state') {
|
||||
const botMsg = ensureBotMessage();
|
||||
if (botMsg) applyShippingOrderExtractionStateToMessage(botMsg, data);
|
||||
} else if (
|
||||
eventName === 'message'
|
||||
|| eventName === 'agent_message'
|
||||
|
||||
Reference in new issue
Block a user