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

Function proposeChatTitle

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

Source from the content-addressed store, hash-verified

1096});
1097
1098export const proposeChatTitle = (queryClient: QueryClient) => ({
1099 mutationFn: (chatId: string) => API.experimental.proposeChatTitle(chatId),
1100
1101 onSettled: (
1102 _data: { title: string } | undefined,
1103 _error: unknown,
1104 chatId: string,
1105 ) => {
1106 void invalidateChatDebugRuns(queryClient, chatId);
1107 },
1108});
1109
1110type UpdateChatTitleVariables = {
1111 chatId: string;

Callers 2

AgentsPageFunction · 0.90
chats.test.tsFile · 0.90

Calls 2

invalidateChatDebugRunsFunction · 0.85
proposeChatTitleMethod · 0.80

Tested by

no test coverage detected