MCPcopy Index your code
hub / github.com/admineral/OpenAI-Assistant-API-Chat / runChatAssistant

Function runChatAssistant

app/modules/assistantModules.ts:114–123  ·  view source on GitHub ↗
(assistantId: string, threadId: string)

Source from the content-addressed store, hash-verified

112* @returns {Promise<void>} - A promise that resolves when the assistant is successfully run.
113*/
114export const runChatAssistant = async (assistantId: string, threadId: string): Promise<string | null> => {
115
116 console.log('Running chat assistant...');
117
118 const response = await runAssistant(assistantId, threadId);
119 const runId = response.runId;
120
121 console.log('Chat assistant run successfully. Run ID:', runId);
122 return runId;
123};
124
125/**
126* Deletes a file from the chat assistant.

Callers 3

startAssistantMethod · 0.90
startAssistantWithIdMethod · 0.90
sendMessageMethod · 0.90

Calls 1

runAssistantFunction · 0.90

Tested by

no test coverage detected