![JAR search and dependency download from the Maven repository](/logo.png)
cn.homj.autogen4j.AgentRecord Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autogen4j-agent Show documentation
Show all versions of autogen4j-agent Show documentation
Design inspired by Microsoft's AutoGen
The newest version!
package cn.homj.autogen4j;
import cn.homj.autogen4j.support.Message;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 对话记录
*
* @author jiehong.jh
* @date 2023/11/28
*/
@Data
@Accessors(chain = true)
public class AgentRecord {
/**
* The name of the agent.
*/
private String name;
private Message message;
/**
* 执行确认,仅消息的角色为 tool 时有效
*/
private boolean confirmed = true;
public static AgentRecord of(String name, Message message) {
return new AgentRecord().setName(name).setMessage(message);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy