model

package
v0.0.0-...-ca8b2fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ask

type Ask struct {
	History []*schema.Message `json:"history"`
	Message string            `json:"message"`
}

type AskResponse

type AskResponse struct {
	Role    string `json:"role"`
	Message string `json:"message"`
}

type RedisHistory

type RedisHistory struct {
	Role    string `json:"role"`
	History string `json:"history"`
}

虽然直接按照 Eino 里面规定的消息结构存储比较方便 但是还是自己定义一个存储历史消息的结构体便于管理

type Summary

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

type SummaryRequest struct {
	SummarizedText   string `json:"summarized_text"`
	UnsummarizedText string `json:"unsummarized_text"`
}

type SummaryResponse

type SummaryResponse struct {
	Summary string `json:"summary"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL