mirror of
https://gitee.com/agents-flex/agents-flex.git
synced 2024-12-02 11:58:01 +08:00
feat: add chat with string prompt for LLM
This commit is contained in:
parent
933ae73e16
commit
fe5d22b01e
@ -17,9 +17,13 @@ package com.agentsflex.llm;
|
||||
|
||||
import com.agentsflex.client.LlmClient;
|
||||
import com.agentsflex.prompt.Prompt;
|
||||
import com.agentsflex.prompt.SimplePrompt;
|
||||
|
||||
public abstract class Llm implements Embeddings{
|
||||
public abstract class Llm implements Embeddings {
|
||||
|
||||
public LlmClient chat(String prompt, ChatListener listener) {
|
||||
return chat(new SimplePrompt(prompt), listener);
|
||||
}
|
||||
|
||||
public abstract LlmClient chat(Prompt prompt, ChatListener listener);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user