package com.gxwebsoft.house.service.impl;

import com.gxwebsoft.house.ai.HouseAiAgentService;
import com.gxwebsoft.house.entity.HouseAiChatRequest;
import com.gxwebsoft.house.entity.HouseAiChatResponse;
import com.gxwebsoft.house.entity.HouseAiIntent;
import com.gxwebsoft.house.service.HouseAiChatService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * AI 找房问答服务，具体编排由受控智能体完成。
 */
@Service
public class HouseAiChatServiceImpl implements HouseAiChatService {

    @Resource
    private HouseAiAgentService houseAiAgentService;

    @Override
    public HouseAiIntent analyzeIntent(String question) {
        return houseAiAgentService.analyzeIntent(question);
    }

    @Override
    public HouseAiChatResponse answer(HouseAiChatRequest request) {
        return houseAiAgentService.answer(request);
    }

    @Override
    public void clearSession(HouseAiChatRequest request) {
        houseAiAgentService.clearSession(request);
    }
}
