Documentation ¶ Index ¶ func GetSessionID(ctx context.Context) string func GetUserID(ctx context.Context) string func SetChatChatSate(ctx context.Context, state *ChatSate) context.Context type ChatSate func GetChatChatSate(ctx context.Context) *ChatSate 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 Source Files ¶ View all Source files chat.go Click to show internal directories. Click to hide internal directories.