package com.infoepoch.pms.agent.web;

import com.infoepoch.pms.agent.service.PmsAgentService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping("/api/agent")
public class AgentChatController {

    private final PmsAgentService pmsAgentService;

//    @PostMapping("/chat")
//    public ResponseEntity<AgentChatResponse> chat(@Valid @RequestBody AgentChatRequest request) {
//        return ResponseEntity.ok(pmsAgentService.chat(request));
//    }
//
//    @PostMapping(path = "/chat/stream", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
//    public SseEmitter streamChat(@Valid @RequestBody AgentChatRequest request) {
//        return pmsAgentService.streamChat(request);
//    }

    @PostMapping("/chatTest")
    public void chatTest() {
        pmsAgentService.chatTest();
    }
}