in src/WebJobs.Extensions.OpenAI/Assistants/AssistantService.cs [355:371]
async Task ProcessFunctionCalls(
string assistantId,
List<ChatToolCall> functionCalls,
InternalChatState chatState,
List<TableTransactionAction> batch,
CancellationToken cancellationToken)
{
this.logger.LogInformation(
"[{Id}] Found {Count} function call(s) in response",
assistantId,
functionCalls.Count);
foreach (ChatToolCall call in functionCalls)
{
await this.ProcessSingleFunctionCall(assistantId, call, chatState, batch, cancellationToken);
}
}