MCPcopy Create free account
hub / github.com/dailydotdev/apps / initializeSearchSession

Function initializeSearchSession

packages/shared/src/graphql/search.ts:374–395  ·  view source on GitHub ↗
({
  prompt,
  ...param
}: InitializePayload)

Source from the content-addressed store, hash-verified

372}
373
374export 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
397export const updateSearchData = (
398 previous: Search,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected