MCPcopy Create free account
hub / github.com/TaskingAI/TaskingAI / fetchSearchData

Function fetchSearchData

frontend/src/components/modalSelect/index.tsx:94–106  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

92 }
93 }
94 const fetchSearchData = async (value: any) => {
95 setContentLoading(true)
96 const res: any = await getRetrievalList(value)
97 const data = res.data.map((item: any) => {
98 return {
99 ...item,
100 capacity1: item.num_chunks + '/' + item.capacity,
101 key: item.collection_id
102 }
103 })
104 setContentList(data);
105 setContentLoading(false)
106 }
107 const fetchActionData = async (params: any) => {
108 setContentLoading(true)
109 const res: any = await getActionsList(params)

Callers 1

handleSearchFunction · 0.85

Calls 1

getRetrievalListFunction · 0.90

Tested by

no test coverage detected