package
Version:
v0.0.0-...-ca8b2fb
Opens a new window with list of versions in this module.
Published: Aug 7, 2025
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AskResponse struct {
Role string `json:"role"`
Message string `json:"message"`
}
type RedisHistory struct {
Role string `json:"role"`
History string `json:"history"`
}
虽然直接按照 Eino 里面规定的消息结构存储比较方便
但是还是自己定义一个存储历史消息的结构体便于管理
type Summary struct {
RoomId int64 `json:"room_id" gorm:"primary_key;type:bigint;not null"`
Status bool `json:"status" gorm:"type:boolean;not null"`
Summary string `json:"summary" gorm:"type:text;"`
}
type SummaryRequest struct {
SummarizedText string `json:"summarized_text"`
UnsummarizedText string `json:"unsummarized_text"`
}
type SummaryResponse struct {
Summary string `json:"summary"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.