package com.arms.api.toolcalling.controller;

import com.arms.api.toolcalling.service.ToolCallingService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import reactor.core.publisher.Mono;

@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("/tool-calling")
public class ToolCallingController {

    private final ToolCallingService toolCallingService;

    @GetMapping("/stream")
    public Mono<String> toolCalling(@RequestParam(value = "message", defaultValue = "프로젝트란?") String message) {
        return toolCallingService.toolCalling(message);
    }
}
