MCPcopy Create free account
hub / github.com/congde/emotional_chat / getSessionHistory

Method getSessionHistory

frontend/src/services/ChatAPI.js:138–148  ·  view source on GitHub ↗
(sessionId, limit = 20)

Source from the content-addressed store, hash-verified

136 }
137
138 static async getSessionHistory(sessionId, limit = 20) {
139 try {
140 const response = await axios.get(`${API_BASE_URL}/chat/sessions/${sessionId}/history`, {
141 params: { limit }
142 });
143 return response.data;
144 } catch (error) {
145 console.error('获取会话历史失败:', error);
146 throw error;
147 }
148 }
149
150 static async getSessionSummary(sessionId) {
151 try {

Callers 1

useSessionFunction · 0.80

Calls 2

errorMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected