package conversationresp

import (
	"github.com/kweaver-ai/kweaver-core/decision-agent/agent-backend/agent-factory/src/domain/entity/conversationeo"
	"github.com/kweaver-ai/kweaver-core/decision-agent/agent-backend/agent-factory/src/domain/enum/cdaenum"
)

type ConversationDetail struct {
	conversationeo.Conversation
	TempareaId string                     `json:"temparea_id"`
	Status     cdaenum.ConversationStatus `json:"status"` // 会话最新消息的状态，completed,processing,failed,cancelled
}

func NewConversationDetail() *ConversationDetail {
	return &ConversationDetail{}
}

func (d *ConversationDetail) LoadFromEo(eo *conversationeo.Conversation) error {
	d.Conversation = *eo
	return nil
}
