package com.iweb.langchain4j.service;

import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import reactor.core.publisher.Flux;

/**
 * 知识出处:
 * https://docs.langchain4j.dev/tutorials/spring-boot-integration/#spring-boot-starter-for-declarative-ai-services
 */
@AiService(wiringMode = AiServiceWiringMode.EXPLICIT
,streamingChatModel = "streamingChatModel")
public interface ChatAssistant {
    /**
     * 普通聊天
     * @param prompt
     * @return
     */
    String chat(String prompt);

    /**
     * 流式聊天
     * @param prompt
     * @return
     */
    Flux<String> chatFlux(String prompt);
}
