state

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSessionID added in v0.0.13

func GetSessionID(ctx context.Context) string

GetSessionID 从 context 中获取 sessionID 的便捷方法

func GetUserID added in v0.0.13

func GetUserID(ctx context.Context) string

GetUserID 从 context 中获取 userID 的便捷方法

func SetChatChatSate

func SetChatChatSate(ctx context.Context, state *ChatSate) context.Context

Types

type ChatSate

type ChatSate struct {
	UserID    string
	SessionID string
	Input     []*schema.Message
}

func GetChatChatSate

func GetChatChatSate(ctx context.Context) *ChatSate

Jump to

Keyboard shortcuts

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