history

package
v0.0.0-...-eb553c6 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatHistory

type ChatHistory struct {
	// contains filtered or unexported fields
}

ChatHistory 一个不重复的struct切片结构

func NewChatHistory

func NewChatHistory(context int) *ChatHistory

func (*ChatHistory) Clear

func (u *ChatHistory) Clear()

func (*ChatHistory) FromJSON

func (u *ChatHistory) FromJSON(s string) error

func (*ChatHistory) Len

func (u *ChatHistory) Len() int

func (*ChatHistory) MarshalJSON

func (u *ChatHistory) MarshalJSON() ([]byte, error)

func (*ChatHistory) Slice

func (u *ChatHistory) Slice() []*llms.Message

func (*ChatHistory) Store

func (u *ChatHistory) Store(msg *llms.Message) bool

func (*ChatHistory) StoreMany

func (u *ChatHistory) StoreMany(msgs ...*llms.Message)

func (*ChatHistory) ToJSON

func (u *ChatHistory) ToJSON() string

Jump to

Keyboard shortcuts

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