assistant

package
v0.0.0-...-5be73b4 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service 助手服务(用于生成标题等辅助任务)

func NewService

func NewService(cfg *config.AssistantConfig) (*Service, error)

NewService 创建助手服务

func (*Service) GenerateTitle

func (s *Service) GenerateTitle(ctx context.Context, messages []*models.Message) (string, error)

GenerateTitle 根据最近的消息生成会话标题 messages: 最近的消息列表(建议传入最近4组对话)

Jump to

Keyboard shortcuts

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