package com.iwe3.langchain4j.service;

import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;

/**
 * 知识出处:
 * https://docs.langchain4j.dev/tutorials/spring-boot-integration/#spring-boot-starter-for-declarative-ai-services
 * chatMemory = "chatMemory" 则表示：使用ChatMemory来完成聊天记忆
 */
@AiService(wiringMode = AiServiceWiringMode.EXPLICIT
,chatModel = "qwen",chatMemory = "windowChatMemory")
public interface ChatAssistant {
    /**
     * 普通聊天
     * @param prompt
     * @return
     */
    String chat(String prompt);
}
