feat: 对接了会话的接口与会话交互

This commit is contained in:
2025-07-22 00:08:36 +08:00
parent c75448e558
commit e6b9407e69
6 changed files with 219 additions and 29 deletions

View File

@@ -0,0 +1,19 @@
import request from "../base/request";
function getAgentChatMessage() {
const args = {
"conversationId":"1931957498711957505",
"agentId":"1",
"messageType": 0,
"messageContent":"酒店一共有哪些温泉?"
}
const defaultConfig = {
header: {
Accept: 'text/event-stream',
'Content-Type': 'application/json'
},
};
return request.post('/agent/assistant/chat', args, defaultConfig);
}
export { getAgentChatMessage }