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

Function createChatMessage

site/src/api/queries/chats.ts:1230–1243  ·  view source on GitHub ↗
(
	queryClient: QueryClient,
	chatId: string,
)

Source from the content-addressed store, hash-verified

1228});
1229
1230export const createChatMessage = (
1231 queryClient: QueryClient,
1232 chatId: string,
1233) => ({
1234 mutationFn: (req: CreateChatMessageRequestWithClearablePlanMode) =>
1235 API.experimental.createChatMessage(chatId, req),
1236 onSuccess: () => {
1237 void invalidateChatDebugRuns(queryClient, chatId);
1238 void queryClient.invalidateQueries({
1239 queryKey: chatPromptsKey(chatId),
1240 exact: true,
1241 });
1242 },
1243});
1244
1245type EditChatMessageMutationArgs = {
1246 messageId: number;

Callers 2

AgentChatPageFunction · 0.90
chats.test.tsFile · 0.90

Calls 2

invalidateChatDebugRunsFunction · 0.85
chatPromptsKeyFunction · 0.85

Tested by

no test coverage detected