MCPcopy Create free account
hub / github.com/simstudioai/sim / reorderChatResources

Function reorderChatResources

apps/sim/hooks/queries/mothership-chats.ts:396–404  ·  view source on GitHub ↗
(params: {
  chatId: string
  resources: MothershipResource[]
})

Source from the content-addressed store, hash-verified

394}
395
396async function reorderChatResources(params: {
397 chatId: string
398 resources: MothershipResource[]
399}): Promise<{ resources: MothershipResource[] }> {
400 const data = await requestJson(reorderMothershipChatResourcesContract, {
401 body: { chatId: params.chatId, resources: params.resources },
402 })
403 return parseChatResourcesResponse(data)
404}
405
406export function useReorderChatResources(chatId?: string) {
407 const queryClient = useQueryClient()

Callers

nothing calls this directly

Calls 2

requestJsonFunction · 0.90

Tested by

no test coverage detected