2026-04-19 11:38:05 +08:00
|
|
|
package runtime
|
|
|
|
|
|
|
|
|
|
import (
|
2026-08-21 00:41:07 +08:00
|
|
|
applicationruntime "code.tczkiot.com/wlw/ai-agent/internal/ai/application/runtime"
|
|
|
|
|
"code.tczkiot.com/wlw/ai-agent/internal/models"
|
2026-04-19 11:38:05 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type aiReplyContext struct {
|
|
|
|
|
Conversation models.Conversation
|
|
|
|
|
Message models.Message
|
|
|
|
|
AIAgent models.AIAgent
|
2026-07-27 23:29:02 +08:00
|
|
|
SummaryRef **applicationruntime.RunResult
|
2026-04-19 11:38:05 +08:00
|
|
|
PendingInterrupt *models.ConversationInterrupt
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-27 23:29:02 +08:00
|
|
|
func (c aiReplyContext) setSummary(summary *applicationruntime.RunResult) {
|
2026-04-19 11:38:05 +08:00
|
|
|
if c.SummaryRef != nil {
|
|
|
|
|
*c.SummaryRef = summary
|
|
|
|
|
}
|
|
|
|
|
}
|