Assistant run function help

Hi, I’m trying to call a function from the assistant api, and I would like the return of this function to be the return of the assistant, but that’s not what’s happening

if (tool.type === 'function' && tool.function.name === 'getQuotation') {
								const data = JSON.parse(tool.function.arguments);

								const output = await this.getQuotation({ ...data });

								await this.openai.beta.threads.runs.submitToolOutputs(newRun.thread_id, newRun.id, {
									tool_outputs: [
										{
											tool_call_id: tool.id,
											output,
										},
									],
								});
							}