All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dingtalk.baymax.framework.sdk.mercury.prompt.BasePromptTemplate Maven / Gradle / Ivy

package com.dingtalk.baymax.framework.sdk.mercury.prompt;

import com.dingtalk.baymax.framework.sdk.mercury.domain.BaseModel;

import java.util.List;
import java.util.Map;

/**
 * 所有提示模板的基类,返回提示
 *
 * @author xiaoxuan.lp
 *
 * 添加基类BaseModel
 *
 * @author xiaoyan.wjw
 */
public abstract class BasePromptTemplate extends BaseModel {

    private String name;

    private List inputVariables;

    public abstract PromptValue formatPrompt(Map inputs);

    public abstract String format(Map inputs);

    public abstract String getPromptType();

    protected void setName(String name) {
    }

    public String getName(){
        return name;
    }

    public List getInputVariables() {
        return inputVariables;
    }

    public void setInputVariables(List inputVariables) {
        this.inputVariables = inputVariables;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy