MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getRequest

Function getRequest

scripts/export-deepseek-session-traces.ts:173–185  ·  view source on GitHub ↗
(row: SessionRow)

Source from the content-addressed store, hash-verified

171}
172
173function getRequest(row: SessionRow): Record<string, unknown> {
174 if (typeof row.request_json === 'string') {
175 return JSON.parse(row.request_json) as Record<string, unknown>
176 }
177 if (
178 row.request_json &&
179 typeof row.request_json === 'object' &&
180 !Array.isArray(row.request_json)
181 ) {
182 return row.request_json as Record<string, unknown>
183 }
184 return {}
185}
186
187function getMessages(request: Record<string, unknown>): ChatMessage[] {
188 return Array.isArray(request.messages)

Callers 2

buildFinalMessagesFunction · 0.85
buildTraceFunction · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected