MCPcopy Create free account
hub / github.com/aurora-develop/aurora / Register

Method Register

initialize/session_manager.go:53–63  ·  view source on GitHub ↗

Register 将 ChatClientState 注册到 conversationID 下。

(conversationID string, state *chatgpt.ChatClientState)

Source from the content-addressed store, hash-verified

51
52// Register 将 ChatClientState 注册到 conversationID 下。
53func (sm *SessionManager) Register(conversationID string, state *chatgpt.ChatClientState) {
54 if conversationID == "" || state == nil {
55 return
56 }
57 sm.mu.Lock()
58 defer sm.mu.Unlock()
59 sm.sessions[conversationID] = &sessionEntry{
60 state: state,
61 lastUsed: time.Now(),
62 }
63}
64
65func (sm *SessionManager) cleanupLoop() {
66 ticker := time.NewTicker(10 * time.Minute)

Callers 3

nightmareMethod · 0.80
responsesMethod · 0.80
handleToolCallingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected