({
prompt,
...param
}: InitializePayload)
| 372 | } |
| 373 | |
| 374 | export const initializeSearchSession = ({ |
| 375 | prompt, |
| 376 | ...param |
| 377 | }: InitializePayload): DeepPartial<Search> => { |
| 378 | const { status, steps } = param; |
| 379 | |
| 380 | return { |
| 381 | ...param, |
| 382 | chunks: [ |
| 383 | { |
| 384 | id: param.chunk_id, |
| 385 | prompt, |
| 386 | response: '', |
| 387 | createdAt: param.createdAt, |
| 388 | sources: [], |
| 389 | status, |
| 390 | steps, |
| 391 | progress: 0, |
| 392 | }, |
| 393 | ], |
| 394 | }; |
| 395 | }; |
| 396 | |
| 397 | export const updateSearchData = ( |
| 398 | previous: Search, |
nothing calls this directly
no outgoing calls
no test coverage detected