MCPcopy Index your code
hub / github.com/coder/coder / createChat

Function createChat

site/src/api/queries/chats.ts:1219–1228  ·  view source on GitHub ↗
(queryClient: QueryClient)

Source from the content-addressed store, hash-verified

1217};
1218
1219export const createChat = (queryClient: QueryClient) => ({
1220 mutationFn: (req: TypesGen.CreateChatRequest) =>
1221 API.experimental.createChat(req),
1222 onSuccess: () => {
1223 void invalidateChatListQueries(queryClient);
1224 void queryClient.invalidateQueries({
1225 queryKey: chatsByWorkspaceKeyPrefix,
1226 });
1227 },
1228});
1229
1230export const createChatMessage = (
1231 queryClient: QueryClient,

Callers 9

AgentCreatePageFunction · 0.90
chats.test.tsFile · 0.90
TestPatchChatFunction · 0.85
TestChatPinOrderFunction · 0.85
TestGetPRInsightsFunction · 0.85
TestChatPinOrderQueriesFunction · 0.85
TestPurgeChatDebugRunsFunction · 0.85
TestDeleteOldChatFilesFunction · 0.85

Calls 1

Tested by 7

TestPatchChatFunction · 0.68
TestChatPinOrderFunction · 0.68
TestGetPRInsightsFunction · 0.68
TestChatPinOrderQueriesFunction · 0.68
TestPurgeChatDebugRunsFunction · 0.68
TestDeleteOldChatFilesFunction · 0.68