chatui/lib/server/chat-session
This page is auto-generated from TSDoc output. Edit the source file, not this Markdown.
chatui/lib/server/chat-session
Section titled “chatui/lib/server/chat-session”- Package:
chatui - Source file:
apps/chatui/src/lib/server/chat-session.ts
Summary
Section titled “Summary”No summary is available for this file.
Functions
Section titled “Functions”getValidatedChatSessionId
Section titled “getValidatedChatSessionId”function getValidatedChatSessionId(value: string | undefined): string | nullParameters
value(string | undefined) Returnsstring | nullDefined at: line 33
getOrCreateChatSessionId
Section titled “getOrCreateChatSessionId”function getOrCreateChatSessionId(cookies: Cookies): stringParameters
cookies(Cookies) ReturnsstringDefined at: line 41
getChatSessionStateById
Section titled “getChatSessionStateById”function getChatSessionStateById(sessionId: string): AgentStateParameters
sessionId(string) ReturnsAgentStateDefined at: line 61
getChatSessionState
Section titled “getChatSessionState”function getChatSessionState(cookies: Cookies): AgentStateParameters
cookies(Cookies) ReturnsAgentStateDefined at: line 74
setChatSessionState
Section titled “setChatSessionState”function setChatSessionState(cookies: Cookies, state: AgentState): AgentStateParameters
cookies(Cookies)state(AgentState) ReturnsAgentStateDefined at: line 78
serializeChatSession
Section titled “serializeChatSession”function serializeChatSession(state: AgentState): ChatMessage[]Parameters
state(AgentState) ReturnsChatMessage[]Defined at: line 85
Constants
Section titled “Constants”CHAT_SESSION_COOKIE
Section titled “CHAT_SESSION_COOKIE”const CHAT_SESSION_COOKIE: stringDefined at: line 7
In chatui
Section titled “In chatui”chatui/lib/chat/typeschatui/lib/indexchatui/lib/server/chat-sessionchatui/lib/server/chat-websocketchatui/routes/+page.server